SdShowAnyDialog Example

InstallShield 2019 » InstallScript Language Reference

Project • This information applies to the following project types:

InstallScript
InstallScript MSI

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

*

* InstallShield Example Script

*

* Demonstrates the SdShowAnyDialog function.

*

* SdShowAnyDialog is called twice, first with the ID of the

* Welcome dialog, then with the ID of the Finish dialog

* box.

*

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

 

#define TITLE "SdShowAnyDialog Example"

 

#include "Ifx.h"

 

function OnBegin()

begin

 

    // Disable the Back button in setup dialogs.

    Disable (BACKBUTTON);

 

    // Set up the product name so that it can be displayed

    // in place of the %P placeholder in Sd dialogs.

    SdProductName ("ExampApp");

 

    // Display the SdWelcome dialog.

    SdShowAnyDialog (TITLE, "", SD_NDLG_WELCOME, 0);

 

    // Display the SdFinish dialog.

    SdShowAnyDialog (TITLE, "", SD_NDLG_FINISH, 0);

 

end;