SetupBuilder Community  

Go Back   SetupBuilder Community > SetupBuilder Software Installation System > SetupBuilder FAQs, Tips and Techniques

 
 
Thread Tools Display Modes
  #1  
Old 01-20-2006, 04:01 AM
FAQ FAQ is offline
Junior Member
 
Join Date: Jan 2006
Posts: 16
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 12:44 AM.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -6. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2004-2012 Lindersoft