Welcome Example

InstallShield 2016 » InstallScript Language Reference

Project • This information applies to the following project types:

InstallScript
InstallScript MSI

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

*

* InstallShield Example Script

*

* Demonstrates the Welcome function.

*

* This script displays the installation Welcome dialog.

*

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

 

#define PRODUCT "ExampleProduct"

 

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

#include "Ifx.h"

 

export prototype ExFn_Welcome(HWND);

 

function ExFn_Welcome(hMSI)

    STRING svLogFile;

begin

 

    SdProductName ( PRODUCT );

 

    // Display the Welcome dialog.

    if (Welcome ("Welcome Dialog Example", 0) < 0) then

      MessageBox ("Welcome dialog failed.", SEVERE);

   endif;

 

end;