We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

asia.shafran
Posts: 9
Joined: Wed Jan 18, 2017 12:53 pm

Upgrade rollback

Hello.
I am trying to write a custom action that should run only when upgrade went unsuccessfully. I mean, when I'm doing upgrade and press cancel button during the upgrade - it should run the rollback script and terminate.
I wrote this new action, put it in the end of the "Install execution stage" but before "Finish execution". I set execution stage condition to be -Install ->Upgrade (First time install is unchecked). Also in "execution time" I set it to be "During installation rollback"

for some reason, the log file says the script is running while upgrade - in both cases! even if went successfully or if i did press the cancel button - in both cases the log file says the script is running. But nothing happend! (The first row in the script is to write something to file which is not happening)

So, actually I cant know if the script was running or not - the log file says it is but it doesnt look like it was running.
How can i know that? and was i supposed to set something else? why it says it is running in both cases if i set "During installation rollback"?

Thanks in advance
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Upgrade rollback

Hello,

Can you please move your rollback custom action just after the "Install Execution Stage -> Preparing" action group, rebuild your setup project and test again the unsuccessful upgrade scenario? If the custom action is still not triggered, then please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”