Page 1 of 1
How to identify installation is after reboot
Posted: Mon Jul 26, 2010 5:39 am
by Orenk9
Hello,
Is there a way to identify the installation runs now after it had to reboot during the installation process?
Thanks,
Oren.
Re: How to identify installation is after reboot
Posted: Wed Jul 28, 2010 7:02 pm
by mills
The command "Reboot and Resume" will reboot the target system, after safely exiting the installation. It will then restart the installation from the beginning. It does not have any configurable parameters. This command is ideal for use during/right-after prerequisite installation.
If you need a highly customized, you should be able to use a variable to record whether you called for a reboot using the Set Variable command:
(From help [F1]):
Remember value when restarting setup
Except for the pre-defined variables TARGETDIR, STARTMENU and ALLUSERS, setup does not save the value of the variables you use in your setup. If you would like setup to save the values of your variables, so they are initialized to the last value they had when setup was running, check this box. If not, leave this box unchecked.
Notes
When the Remember value when restarting setup box is unchecked, variables will not be saved when setup exits after an uninstallation (when Apply Changes is called with the Uninstall Product option).
In all other instances, including starting setup but not fully completing the installation (for instance, due to an interim reboot caused by the Reboot and Resume command), variables will be saved.
If setup uninstalls and then reinstalls, variable values will be saved again.
After the Set Variable command executes with the Remember value when restarting setup box checked at least once for a given variable, that variable will always be saved (within the guidelines discussed above). It is not necessary to check the same box for future uses of the Set Variable command on that same variable.