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
FOLLOW US
Get the latest news in Application Packaging