olegsavelos
Posts: 8
Joined: Mon May 13, 2013 9:40 am

Installer and rollback

Hi.
I am trying to build the installer and wondering how i could achieve the following functionality.

1) Application downloads the updated installer exe or msi to a temp directory.
2) Application Launches the installer and passes some command line parameters that is related to the application itself
3) Application exits to allow the installer to update it
4) If installation is successful the installer relaunches the updated application with the parameters it have received during update
5) If installation fails the installer rollbacks to previous version and application with the parameters it have received during update

Is it possible to achieve this without having any external application?
olegsavelos
Posts: 8
Joined: Mon May 13, 2013 9:40 am

Re: Installer and rollback

Anyone?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer and rollback

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

Sorry for the delayed reply. You can achieve what you want if you use the Advanced Installer Updater as described in the Using the Updater tutorial.
5) If installation fails the installer rollbacks to previous version and application with the parameters it have received during update
In order to achieve this step, you can go in the Upgrades page of your project and select the "Install new version first and then uninstall old version" option, but in this case your application may occur some problems.

Let us know if you have any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
olegsavelos
Posts: 8
Joined: Mon May 13, 2013 9:40 am

Re: Installer and rollback

Not really answering my questions.
Is it possible to achieve this without having any external application?

2) Application Launches the installer and passes some command line parameters that is related to the application itself
4) If installation is successful the installer relaunches the updated application with the parameters it have received during update
5) If installation fails the installer rollbacks to previous version and application with the parameters it have received during update
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer and rollback

Hi,
Is it possible to achieve this without having any external application?
You can go in the Updater page and enable the "Check for updates using Advanced Updater" option then you can also integrate this Updater in your application.
2) Application Launches the installer and passes some command line parameters that is related to the application itself
When the application checks for updates it launches the installer if a new version is available. Also, you can set the command line parameters that you want to send to the application, by writing them in the "Update Installer" section, "Command Line" text field when you create the Update Configuration File.
4) If installation is successful the installer relaunches the updated application with the parameters it have received during update
You can achieve this by going in the Dialogs page, select the "ExitDialog" dialog, click the "Finish" button and in the "Finish Actions" tab check the "Launch application at the end of installation" option, then choose your application and the arguments it received through updater.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”