InstallShield 2016 ยป InstallScript Language Reference
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the PlaceBitmap function.
*
* PlaceBitmap is called to display and remove bitmaps on the
* screen. The SetDisplayEffect function sets the display
* effect for the bitmap.
*
* Note: Before running this script, set the constant BMP_PATH
* so that it references an existing bitmap file on the
* target system.
*
\*--------------------------------------------------------------*/
#define BMP_PATH "C:\\Windows\\Bubbles.bmp"
#define BITMAP_ID_1 12
#define BITMAP_ID_2 13
#define BITMAP_ID_3 14
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_Placebitmap(HWND);
function ExFn_Placebitmap(hMSI)
begin
Enable ( BACKGROUND );
// Display the bitmap in the upper left corner.
PlaceBitmap (BMP_PATH, BITMAP_ID_1, 10, 12, UPPER_LEFT);
// Set bitmap reveal effect.
SetDisplayEffect (EFF_REVEAL);
// Display the bitmap in the lower right corner.
PlaceBitmap (BMP_PATH, BITMAP_ID_2, 10, 10, LOWER_RIGHT);
Delay(3);
// Remove the bitmap in the upper left corner.
PlaceBitmap ("", BITMAP_ID_2, 0, 0, REMOVE);
// Remove the bitmap in the lower right corner.
PlaceBitmap ("", BITMAP_ID_1, 0, 0, REMOVE);
// Set bitmap fade in effect.
SetDisplayEffect (EFF_FADE);
// Display the bitmap at the center of screen.
PlaceBitmap (BMP_PATH, BITMAP_ID_3, CENTERED, CENTERED, 0);
Delay (3);
// Remove the bitmap at the center of the screen.
PlaceBitmap ("", BITMAP_ID_3, 0, 0, REMOVE);
Delay (1);
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |