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 SizeWindow function.
*
* GetExtents is called to retrieve the extents of the screen.
* SizeWindow is then called to resize the background to half
* the original size.
*
\*--------------------------------------------------------------*/
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_SizeWindow(HWND);
function ExFn_SizeWindow(hMSI)
NUMBER nDx, nDy, nObject;
begin
// Enable the background.
Enable (BACKGROUND);
MessageBox ("Background at original size.", INFORMATION);
// Get the extents of the screen.
GetExtents (nDx, nDy);
// Set the object to be resized.
nObject = BACKGROUND;
// Resize the background window to half of its original size.
if (SizeWindow (nObject, (nDx / 2), (nDy / 2)) < 0) then
MessageBox ("SizeWindow failed.", SEVERE);
endif;
MessageBox ("Background after call to SizeWindow.", INFORMATION);
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |