InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the RebootDialog function.
*
* This script calls RebootDialog to display a dialog that
* asks the user whether or not to reboot the computer. The call
* to RebootDialog passes a null string in parameter 2 to display
* the default message and 0 in parameter 3 to make the default
* selection "No, I will restart my computer later."
*
* Warning: If the end user selects Yes in this dialog, the
* computer is rebooted.
*
\*--------------------------------------------------------------*/
#define TITLE_TEXT "RebootDialog Example"
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_RebootDialog(HWND);
function ExFn_RebootDialog(hMSI)
NUMBER nvDefChoice;
begin
// Query to reboot computer.
RebootDialog (TITLE_TEXT, "", 0);
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |