Reboot Object
InstallShield 2022 » InstallScript Language Reference
Project:This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
The Reboot object is used for passing command-line arguments to the Setup.exe file after a restart; this information is written to the appropriate registry key at the end of the installation, so that the installation runs after the system is restarted. For example, the following statement runs the installation in debug mode after a restart:
Reboot.CommandLine = "-d";
Note that the specified argument or arguments are added to the existing command line; they do not replace the existing command line. Note also that currently you cannot change the existing command line or remove text from it.
Passing Parameters to the InstallScript Variable CMDLINE in an InstallScript MSI Installation
As with any Setup.exe command line, in an InstallScript MSI installation, if you are trying to pass information to the InstallScript variable CMDLINE variable when the Setup.exe file is launched after the restart, you must include the information after specifying the -z option. For example, the following adds TEST1 TEST2 to the reboot string and thus the CMDLINE variable when the Setup.exe file is launched after the restart.
Reboot.CommandLine = -z"TEST1 TEST2"
Note that since multiple –z parameters are not supported, you must specify all information that is intended for the CMDLINE variable in a single Reboot.CommandLine call for your InstallScript MSI installation.