Archive: Install Shield


Install Shield
Our old installer script uses Install Shield. We have now decided to start using the Nullsoft Installer. Currently, when we detect the Install Shield version, we have Nullsoft delete the old install. However, this requires a reboot at the end of the uninstallation. Uninstalling and reinstalling with Nullsoft doesnt require reboot. Uninstalling Install Shield and reinstalling with Nullsoft prompts for reboot. Does anyone have a fix?


So all you want to do is to get NSIS to reboot the system?
NSIS Manual => 4.9.11 Reboot Instructions

; If reboot is required set the SetRebootFlag
SetRebootFlag true

...

; At the end check if SetRebootFlag is set and prompt for reboot if it is set
IfRebootFlag 0 noreboot
MessageBox MB_YESNO "A reboot is required bla bla ... reboot now?" IDNO noreboot
Reboot
noreboot:

Not sure about this case (Since I haven't seen the script), but the reboot prompt is good to place in .onInstSuccess function so that it prompts only if the install was successful.

Im sorry for not being more clear. Currently, the system only prompts for reboot when you are uninstalling the Install Shield version, and installing the Nullsoft Version. I did not code the reboot option, and I do not want users to have to reboot when going Install Shield to Nsis installers. The reboot isn't necessary, either, so I've no idea why it forces the option.

Thank you!


Hmm, the reboot prompt caused from IS uninstaller. Probably you should try to find out if there is a param you can use to suppress IS messages e.g. "uninstall /S". If not, then you may try to catch the reboot prompt window at runtime, and send it message to close. In this case, a forum search will show you examples on how this can be done.