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 RGB function.
*
* The first call to RGB returns the value of the background
* color to Grey; the second call returns the background color
* to red; the third call returns the background color to blue.
* The values returned by the calls to RGB are passed to
* SetColor to change the background color.
*
\*--------------------------------------------------------------*/
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_RGB(HWND);
function ExFn_RGB(hMSI)
begin
Enable ( BACKGROUND );
// Change the background color to light grey.
SetColor (BACKGROUND, RGB(198,198,198));
Delay (3);
// Change the background color to red.
SetColor (BACKGROUND, RGB(255,0,0));
Delay (3);
// Change the background color to blue.
SetColor (BACKGROUND, RGB(0, 0, 255));
Delay (3);
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |