SdInit Example

InstallShield 2014 » InstallScript Language Reference

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

*

* InstallShield Example Script

*

* Demonstrates the SdInit function.

*

* Note that SdInit is called automatically by each Sd function.

* It is unnecessary to call SdInit explicitly unless your script

* calls DialogSetInfo before calling any of the Sd dialog functions.

* In that case, your script must call SdInit before it calls

* DialogSetInfo—otherwise the call to DialogSetInfo has no effect.

*

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

 

#include "Ifx.h"

 

function OnBegin()

    STRING szInfoString;

begin

 

    // Initialize setup for calls to Sd dialog functions.

    SdInit ();

 

    // Set check box style for feature selection.

    DialogSetInfo ( DLG_INFO_CHECKSELECTION, szInfoString, CHECKBOX );

 

    // Get feature selections.

    SdFeatureDialog2 ( "", "", TARGETDIR, "" );

 

end;