InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdFinishReboot dialog.
*
* Warning: If you select the reboot option, your computer will
* reboot. Be sure you do not have any unsaved files
* open when you select this option.
*
\*--------------------------------------------------------------*/
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg1, szMsg2;
NUMBER nDefOption, nReserved;
begin
// Set up variables to pass as parameters to SdFinishReboot.
szTitle = "SdFinishReboot Example";
szMsg1 = "Setup has completed installing %P.";
// nDefOption - Specifies a default radio button option selection.
// SYS_BOOTMACHINE - Reboot the computer when the setup is finished.
// 0 - Do not reboot the computer.
nDefOption = 0;
szMsg2 = "Click Finish to exit %P setup.";
nReserved = 0;
// Display the SdFinishReboot dialog.
if (SdFinishReboot (szTitle, szMsg1, nOption, szMsg2, nReserved) < 0) then
// Indicates that the user chose to either reboot the system
// or restart Windows, but the reboot or restart failed.
MessageBox ("SdFinishReboot failed.", SEVERE);
endif;
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |