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!

chrisbrown
Posts: 2
Joined: Fri Oct 05, 2012 11:05 am

Suppress reboot on upgrade

Hello,

I have an installer that must reboot the PC when the application is uninstalled (but not when it is installed). I have achieved this by creating a custom action that sets the REBOOT property to F with an execution condition of (REMOVE="ALL"). This action runs during the InstallFiles stage. The installer has to run without user interaction, so I have set the reboot without prompting option under Install Parameters. When I run the installer, it installs correctly. When I uninstall the application, it is removed and the PC reboots.

The problem comes when I try to update the application. If I try to install a newer version of the application over an old one, it removes the old version, installs the new version and reboots. Is there an execution condition I can specify that will run when the application is removed, but not when it is updated?

Thanks,

Chris
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Suppress reboot on upgrade

Hello Chris and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can add a "Set installer property" custom action with sequence, scheduled after Wizard Dialogs Stage -> Searches" and "Install Execution Stage -> Searches" action group, like this:
  • Property: REBOOT
    Formatted: ReallySuppress
    Condition: UPGRADINGPRODUCTCODE
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrisbrown
Posts: 2
Joined: Fri Oct 05, 2012 11:05 am

Re: Suppress reboot on upgrade

That did the trick, thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Suppress reboot on upgrade

You're welcome. Glad to help.

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

Return to “Building Installers”