SetTitle Example

InstallShield 2016 ยป InstallScript Language Reference

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

*

* InstallShield Example Script

*

* Demonstrates the SetTitle function.

*

* This script displays a title in yellow, 24-point type.

*

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

 

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

#include "Ifx.h"

 

export prototype ExFn_SetTitle(HWND);

 

function ExFn_SetTitle(hMSI)

begin

 

    // Make the background window a standard maximized window.

    Enable (FULLWINDOWMODE);

    

    // Set the background color to blue.

    SetColor (BACKGROUND, BK_BLUE);

    

    // Display a title in the window.  The newline character

    // in the title string forces "Example" to the next line.

    SetTitle ("SetTitle\nExample", 24, YELLOW);

    

    // Display the background window

    Enable (BACKGROUND);

    

    // Leave the window open for 3 seconds.

    Delay (3);

 

end;