cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Johnny_Thunder
Level 3

Continue Uninstall after reboot for basic MSI

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?
Labels (1)
0 Kudos
1 Reply
jlynch11
Level 5 Flexeran
Level 5 Flexeran

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).
0 Kudos