InstallShield 2018 » InstallScript Language Reference
Edition • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI (in event-driven InstallScript—not in InstallScript custom actions) |
The DialogSetInfo function changes the following display elements in run-time dialogs:
• | The image to be displayed |
• | The style of the check boxes used to obtain end-user selections |
• | The precision of the values that indicate available hard drive space |
You must call DialogSetInfo each time that you want to change a particular aspect of a single dialog. Changes that are made by a call to DialogSetInfo remain in effect for the remainder of the installation or until they are changed again by a subsequent call to DialogSetInfo.
Note • If your script calls DialogSetInfo before calling any of the Sd dialog functions, the call to DialogSetInfo must be preceded by a call to SdInit. If it is not, the call to DialogSetInfo has no effect.
Syntax
DialogSetInfo ( nInfoType, szInfoString, nParameter );
Parameters
Parameter |
Description |
|||||||||||||||||||||
nInfoType |
Specifies the display feature to be modified. Pass one of the following predefined constants in this parameter:
Display effects that have been set with SetDisplayEffect do not apply to alternate images, which are always displayed without any special effects.
If transparency is required, image types that support transparency (such as PNG) should be used and szInfoString should specify the name of the image to be displayed (optionally including the path) in the dialog. This parameter applies to all dialogs that display the standard installation image on the left side of the dialog. When DLG_INFO_ALTIMAGE_HIDPI is passed in nInfoType, the following parameter values are expected: szInfoString and nParameter. For more information, see the szInfoString and nParameter descriptions. Display effects that have been set with SetDisplayEffect do not apply to alternate images, which are always displayed without any special effects. |
|||||||||||||||||||||
When DLG_INFO_ALTIMAGE is passed in nInfoType, this parameter specifies the file name of an alternate bitmap to display and, optionally, a set of bitmap attributes. If bitmap attributes are included, the string passed in this parameter should be formatted as follows: "bitmap file name;transparent flag;3-D flag;<unused>;background color"
The following example will display the bitmap from the file MyBitmap.bmp, which is located in the SUPPORTDIR folder. The bitmap is placed on a black background and has a three-dimensional border. Any parts of the bitmap that are magenta are displayed in the background color of black. SUPPORTDIR ^ "MyBitmap.bmp" + ";1;1;;0,0,0" Note that the standard bitmap measures 57 x 53. An alternate bitmap should be about this size as well. If the bitmap is larger than this size, it will be centered vertically within the title area, and the right side of the bitmap will be aligned with the right side of the dialog. (In the Welcome, SdWelcome, and SdFinish dialogs, the right side of the bitmap will be aligned with the right side of the larger image within which the bitmap appears.) The left side of the bitmap will extend as far to the left of the dialog as necessary. Any part of the bitmap that extends below the title area of the dialog will be clipped. If the bitmap is smaller than 57 x 53 it will be will displayed correctly, but it will not be resized or extended. When DLG_INFO_ALTIMAGE_HIDPI is passed in nInfoType, this parameter specifies the file name of a high DPI image to display, optionally including the path. If no path to the file is specific, the file is assumed to be in SUPPORTDIR. If this file does not exist, DialogSetInfo returns ISERR_FILE_NOT_FOUND. This parameter is ignored when the default image is being restored or when nInfoType is not DLG_INFO_ALTIMAGE or DLG_INFO_ALTIMAGE_HIDPI. |
||||||||||||||||||||||
Operates in conjunction with nInfoType to specify dialog features. When nInfoType is DLG_INFO_ALTIMAGE, pass one of the following predefined constants to specify which bitmap to display:
When nInfoType is DLG_INFO_ALTIMAGE_HIDPI, nParameter specifies the DPI scaling percentage. For example, pass 200 for a 200% image scale, 150 for a 150% scale, etc. The minimum supported scaling value is 25. If 0 is passed for this value, no image is displayed. If DLG_INFO_ALTIMAGE_REVERT_IMAGE is passed, the previous image used is displayed. When nInfoType is either DLG_INFO_KUNITS or DLG_INFO_USEDECIMAL, pass one of the following predefined constants to specify how sizes should be displayed:
|
Return Values
Return Value |
Description |
ISERR_SUCCESS (0) |
The function successfully set the specified style. If DLG_INFO_ALTIMAGE_VERIFY_BMP was passed in nParameter, this return value also indicates that the bitmap was found. |
< ISERR_SUCCESS (< 0) |
An unspecified error occurred when the function attempted to set the dialog information. |
ISERR_FILE_NOT_FOUND (0x80070004) |
The image that was indicated by szInfoString was not found. |
Additional Information
To preview the effects of a call to DialogSetInfo in an InstallScript installation, run the Dialog Sampler (which is available from the Tools menu’s InstallScript submenu), change the attributes of the dialogs (by clicking the Attributes button), then examine the changes in dialogs such as SdFeatureMult.
See Also
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |