SdSelectFolder Example

InstallShield 2019 » InstallScript Language Reference

Project • This information applies to the following project types:

InstallScript
InstallScript MSI

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

*

* InstallShield Example Script

*

* Demonstrates the SdSelectFolder function.

*

* SdSelectFolder is called to prompt the user to select a

* folder.

*

* Note: Before running this script, verify that the constant

*       DEF_FOLDER references an existing folder on the

*       target computer.

*

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

 

#define DEF_FOLDER "Startup"

 

#include "Ifx.h"

 

function OnBegin()

    STRING   szTitle, szMsg, svDefGroup;

begin

 

    // Set up parameters for call to SdSelectFolder.

    szTitle   = "SdSelectFolder Example";

    szMsg     = "";

    svDefGroup = DEF_FOLDER;

 

    // Get user's folder selection.

    SdSelectFolder (szTitle, szMsg, svDefGroup);

 

end;