Results 1 to 1 of 1

Thread: #00003: How to Reboot and Continue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default #00003: How to Reboot and Continue?

    Question:

    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.

    Answer:

    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 process
    Add RegistryRunOnce Entry "%INSTALLERFILENAME% /V REBOOTED 1"
    Display Message Box "--- Only Displayed Before Reboot ---\n" -- "SetupBuilder 5"
    Reboot Computer System
    End

    Display Message Box "--- Only Displayed After Reboot ---\n" -- "SetupBuilder 5"


    Date: 01/20/2006
    Last edited by FAQ; 02-08-2006 at 01:44 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Reboot & Continue, but oops, media has been removed
    By LoboMgr in forum SetupBuilder 'How Do I' Questions
    Replies: 0
    Last Post: 02-28-2006, 03:40 PM
  2. #00005: Install MSDE 2000, reboot and continue.
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 01-24-2006, 02:28 AM
  3. Force reboot, continue install
    By craig.owens in forum SetupBuilder 'How Do I' Questions
    Replies: 1
    Last Post: 05-02-2005, 01:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •