#00003: How to Reboot and Continue?
How to create a setup that reboots during a certain point in the install. After the reboot, the setup launches again and continues on from the same location it left off from.
This can done by making an entry into the RunOnce key in the registry. The RunOnce key contains the path to the installation setup.exe file so that it starts again after reboot. The RunOnce key path also includes a /V REBOOTED 1 command line switch to set the runtime installer variable %REBOOTED% to 1 so that you can easily detect if the setup.exe was executed by the RunOnce key. Then using the %REBOOTED% variable, you can skip through code that was executed during the initial installation.
Set Variable %REBOOTED% to 0
Set Variable %INSTALLERFILENAME% to ScriptItem->Get System Information(Installer File Name)
If %REBOOTED% Equals "0" Then
! /V REBOOTED 1 to skip reboot processEnd
Display Message Box "--- Only Displayed After Reboot ---\n" -- "SetupBuilder 5"
Last edited by FAQ; 02-08-2006 at 12:44 AM.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Reboot & Continue, but oops, media has been removed||LoboMgr||SetupBuilder 'How Do I' Questions||0||02-28-2006 02:40 PM|
|#00005: Install MSDE 2000, reboot and continue.||FAQ||SetupBuilder FAQs, Tips and Techniques||0||01-24-2006 01:28 AM|
|Force reboot, continue install||craig.owens||SetupBuilder 'How Do I' Questions||1||05-02-2005 12:42 AM|