Delay Example

InstallShield 2016 » InstallScript Language Reference

Note • To call this function in a Basic MSI setup, you must first create a custom action for the entry-point function, execute the custom action in a sequence or as the result of a dialog's control event, and then build the release.

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

*

* InstallShield Example Script

*

* Demonstrates the Delay function.

*

* First, SdShowMsg is called to display a message box and Delay

* is called to pause the script for three seconds.  Then the

* message box is removed and Delay is called again to pause for

* two seconds.  Finally, another message is displayed for three

* seconds.

*

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

 

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

#include "Ifx.h"

 

export prototype ExFn_Delay(HWND);

 

function ExFn_Delay(hMSI)

begin

 

    SdShowMsg ("This message will be displayed for three seconds.", TRUE);

 

    Delay (3);

    

    SdShowMsg ("", FALSE);

 

    Delay (2);

    

    SdShowMsg ("This is another message that will be displayed for a mere " +

              "three seconds.", TRUE);

 

    Delay (3);

 

end;