zli
Posts: 4
Joined: Mon Mar 02, 2015 11:14 pm

Force reboot during upgrade after uninstall old version

We need to force a reboot during an upgrade after the old version is uninstalled but before the new version is installed. This thread(http://www.advancedinstaller.com/forums ... =5&t=26197) has the same question, but was answered for the Enterprise version. I need to know how to do it with the Professional version.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Force reboot during upgrade after uninstall old version

Hello,

In order to reboot during an upgrade after the old version is uninstalled but before the new version is installed, you can follow the steps from the Reboot after uninstall and during upgrade forum thread.

Indeed, you need the Table Editor feature which is available starting with the Enterprise edition of Advanced Installer. You cannot implement this using a Professional edition of Advanced Installer.

As a workaround, you can try to edit the .MSI after building your project using a tool like Orca. If you digitally sign your installation package from Advanced Installer, the digital signature will be broken since the tests to confirm that the signed data has not changed will fail. This is happening because the data has been tampered with after it was signed.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zli
Posts: 4
Joined: Mon Mar 02, 2015 11:14 pm

Re: Force reboot during upgrade after uninstall old version

That works, however I have a custom action on install to launch a batch script that is set as a tempory file. This fails after the reboot. Looking at the msiexec logs, it looks llike the temp files are removed before
the install. In the logs I see multiple times where the temp files are extracted and removed, but they are getting removed and not re-extracted before the install part runs.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Force reboot during upgrade after uninstall old version

Hello,

The solution for the temp files problem would be to create a subfolder under "WindowsVolume\Temporary" with an unique name for each version (name it [|ProductVersion], for example). Then you must place all temp files you intend to use after reboot in this folder.

Please let us know if the behaviour still persist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”