cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
elmtree111
Level 5

how to continue install after restart in a Installscript project?

now i'm working on a Installscript project. i set the runonce key to restart the computer and then how can i back to my installer and continue the installation? If i set runonce key to run setup.exe, the installation is not continue from the point but run installer again?
Help! thanks in advance!
Labels (1)
0 Kudos
(7) Replies
RobertDickau
Flexera Alumni

For InstallScript projects, please search the online help for the event name "OnRebooted".
0 Kudos
elmtree111
Level 5

not much information about "OnRebooted" event on the web, i still don't know how to use it. if i don't set the runonce key, just use "SdFinishReboot" to work with "OnRebooted" event, it doesn't work. so anyone have anyidea about this? or give a small example.
i really want to know how to call "OnRebooted" event, or if it is called automatically after rebooted, then before reboot, what should i set first?
0 Kudos
RobertDickau
Flexera Alumni

Please see the InstallShield help topic "Understanding When an Installation or Uninstallation Restarts the Target System" (found by searching for "OnRebooted").

A quick test in which I set BATCH_INSTALL=TRUE; in OnBegin to request a later reboot, and then included this---
function OnRebooted( )
begin
MessageBox("Calling OnRebooted...", INFORMATION);
end;
---resulted in the installer offering to reboot at the end, and then calling only OnRebooted after the reboot. As described in that help topic, the RunOnce key is set up automatically when you set BATCH_INSTALL.
0 Kudos
elmtree111
Level 5

thank you so much,Robert. It works!
0 Kudos
another_1
Level 4

Hi Robert,
Did exactly that in InstallShield 2008 InstallScript Project - nothing had happened after reboot.
Correction - nothing happens on Win2003, but on XP I get an error "Setup is not found" with the location pointing to - supposedly - cached install.
Except this install is not cached.
Any suggestions?
Thank you,
Masha
RobertDickau wrote:
Please see the InstallShield help topic "Understanding When an Installation or Uninstallation Restarts the Target System" (found by searching for "OnRebooted").

A quick test in which I set BATCH_INSTALL=TRUE; in OnBegin to request a later reboot, and then included this---
function OnRebooted( )
begin
MessageBox("Calling OnRebooted...", INFORMATION);
end;
---resulted in the installer offering to reboot at the end, and then calling only OnRebooted after the reboot. As described in that help topic, the RunOnce key is set up automatically when you set BATCH_INSTALL.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

If this is an uninstall, the cached setup files are removed and therefore cannot be launched after a reboot. The error that appears after reboot is resolved in IS 2009.

If this is an installation with maintenance disabled, the setup files are never cached (because there would be no opportunity to remove them). Therefore, it is not possible to run the setup after reboot if maintenance is disabled. The error that appears after reboot will be resolved in a future release of InstallShield.
0 Kudos
another_1
Level 4

Ah, this is exactly it! Maintenance IS disabled.
How come this is not mentioned anywhere? Very, very frustrating.
Thank you for your answer!
Masha
joshstechnij wrote:

If this is an installation with maintenance disabled, the setup files are never cached (because there would be no opportunity to remove them). Therefore, it is not possible to run the setup after reboot if maintenance is disabled. The error that appears after reboot will be resolved in a future release of InstallShield.
0 Kudos