View Full Version : Continue Uninstall after reboot for basic MSI

Johnny Thunder
11-07-2013, 08:31 AM
In my basic MSI project I need to schedule a reboot and then, after the reboot, continue with the installation. I can't figure out how to do this, can anyone point me in the right direction?

11-25-2013, 01:13 PM
You can use a Forcereboot Standard action to schedule a reboot during install and resume after reboot. According to Microsoft, The ForceReboot action writes a registry key that causes the installer to resume after the reboot. The location of this key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce.
See the microsoft article http://msdn.microsoft.com/en-us/library/windows/desktop/aa368607%28v=vs.85%29.aspx for more information about the ForceReboot action.

In InstallShield you can add a ForceReboot action to your project by going to custom actions and sequences, right-clicking the execute sequence and selecting Insert (Standard Actions).