SdFinishUpdateReboot Example

InstallShield 2020 » InstallScript Language Reference

Project:This information applies to the following project types:

InstallScript
InstallScript MSI

/*--------------------------------------------------------------*\

*

* InstallShield Example Script

*

* Demonstrates the SdFinishUpdateReboot dialog.

*

* This dialog is used at the end of an installation to announce

* that the installation is complete and gives the user the option

* to restart the system and to check for application updates.

*

\*--------------------------------------------------------------*/

 

// Include Ifx.h for built-in InstallScript function prototypes

#include "ifx.h"  

 

export prototype ExFn_SdFinishUpdateReboot(HWND);

 

function ExFn_SdFinishUpdateReboot(hMSI)

    STRING szTitle, szMsg1, szMsg2;

    NUMBER nDefOption, nChkUpdate, nReserved;

begin  

 

    szTitle = "SdFinishUpdateReboot Example";

    szMsg1  = "";     

    szMsg2  = "";

 

// nDefOption - Specifies the option button selected by default.

    // 1 - Yes, check for program updates

    // 0 - No, skip this step

    nDefOption = 1;  

 

    // nChkUpdate - Specifies the default state of the FlexNet Connect check box.

    // nChkUpdate - Returns the state of the FlexNet Connect check box.

    // 0 - Check box is not selected. Do not check for application updates.

    // Other than 0 - Check box is selected. Check for application updates.

    nChkUpdate = 1;

    nReserved = 0;

    SdFinishUpdateReboot ( szTitle, szMsg1, nDefOption, szMsg2, nChkUpdate, nReserved );

 

end;