Archive: Supressing reboots...


Supressing reboots...
Hi all,

I am using NSIS for some software my company uses. The software itself is actually two different packages; both of which use InstallShield installers. I'm using NSIS to chain them together. Both packages require reboots once finished, but they are not dependent on each other. Because of this, we can put off rebooting until both have been installed and effectively change two reboots down to one. I have NSIS perform a reboot at the end. However, I don't trust my users enough to select "No, I will reboot my computer later" when prompted both times by InstallShield.

I was wondering if anyone has any idea on how to force the installer to not reboot and not prompt the user (or at a minimum, prevent the system from being rebooted). I'm sure this is a long shot, but I thought I'd check anyway. Thanks in advance.


1) Maybe the reboot option of InstallShield can be diabled with a command line parameter. Search the InstallShield site.

2) Maybe the InstallShield installers can be configured with command line parameters, so you can use NSIS to control 'em?

3) Convert the InstallShield installers to NSIS :)

4) Add a RunOnce entry to start your NSIS installer again if the user has rebooted.


Originally posted by Joost Verburg
1) Maybe the reboot option of InstallShield can be diabled with a command line parameter. Search the InstallShield site.

2) Maybe the InstallShield installers can be configured with command line parameters, so you can use NSIS to control 'em?

3) Convert the InstallShield installers to NSIS :)

4) Add a RunOnce entry to start your NSIS installer again if the user has rebooted.
Thanks for the response!

I did find out how to set up a script for a silent install on InstallShield, so that appears to be working for me. The script is automatically answering no to the reboot question and NSIS is controlling it well.

I would really like to convert them both to NSIS, but I can't see where NSIS has support for installing services. The Services.dll plugin seems to only support operations on an already existing service. Is there any way to install services under NSIS?

To install your application as a service, you have to add certain registry keys (HKLM, SYSTEM\Services). Search the MSDN for more info.