SdShowMsg Example

InstallShield 2019 » InstallScript Language Reference

Project • This information applies to the following project types:

InstallScript
InstallScript MSI

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

*

* InstallShield Example Script

*

* Demonstrates the SdShowMsg dialog.

*

* SdShowMsg is called to display a message for three seconds.

* It's then called again to remove the message from the screen.

* A final call to SdShowMsg displays another message.

*

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

 

#include "Ifx.h"

 

function OnBegin()

   STRING szMsg;

begin

 

   // Display a message on the screen.

   szMsg = "This message will appear for three seconds.";

   SdShowMsg (szMsg, TRUE);

 

   // Delay for 3 seconds.

   Delay (3);

 

   // Remove message from screen.

   SdShowMsg (szMsg, FALSE);

 

   // Display another message on the screen.

   szMsg = "This is another message which will " +

      "appear for a mere three seconds.";

   SdShowMsg (szMsg, TRUE);

   Delay(3);

 

   // Remove message from screen.

   SdShowMsg (szMsg, FALSE);

 

end;

 

// Source file:Is5fn157.rul