FeatureDialog Example

InstallShield 2014 » InstallScript Language Reference

Project: This information applies to the following project types:

InstallScript MSI



* InstallShield Example Script


* Demonstrates the FeatureDialog function.


* This example script displays a dialog that displays a list

* of features in the setup that the user can install and the

* amount of space that each feature occupies.


*  Comments:  To run this example script, create a project (or

*             insert into a project) with several features

*             and/or subfeatures with components containing

*             files.  




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

#include "Ifx.h"


// Include iswi.h for Windows Installer API function prototypes and constants,

// and to declare code for the OnBegin and OnEnd events.

#include "iswi.h"


// The keyword export identifies MyFunction() as an entry-point function.

// The argument it accepts must be a handle to the Installer database.

   export prototype MyFunction(HWND);


// To Do:  Declare global variables, define constants, and prototype user-

//         defined and DLL functions here.


function MyFunction(hMSI)


    STRING szTitle, szMsg, svDir;




    svDir   = INSTALLDIR;

    szTitle = "Select Features";

    szMsg   = "Select the features you want to install on your computer.";


    // Display available features.  

    FeatureDialog (szTitle, szMsg, svDir, "");