InstallShield 2019 » 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 SetErrorMsg function.
*
* This script customizes the error messages displayed after a
* call to EnterDisk if the next disk in a set of setup disks
* is not ready in the specified drive.
*
\*--------------------------------------------------------------*/
// Define the text messages for EnterDisk errors.
#define MSG_DRIVE_DOOR "The drive door is open."
#define MSG_BAD_PATH "The path does not exist."
#define MSG_BAD_TAG "Bad tag file."
#define MSG_BAD_DRIVE "The specified drive does not exist."
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_SetErrorMsg(HWND);
function ExFn_SetErrorMsg(hMSI)
begin
// Set the messages for the error boxes of the EnterDisk function.
SetErrorMsg (ERR_BOX_DRIVEOPEN, MSG_DRIVE_DOOR);
SetErrorMsg (ERR_BOX_BADPATH, MSG_BAD_PATH );
SetErrorMsg (ERR_BOX_BADTAGFILE, MSG_BAD_TAG);
SetErrorMsg (ERR_BOX_DISKID, MSG_BAD_DRIVE);
// Prompt the user to specify a disk.
EnterDisk ("Please enter the 'Examples' disk:", "Example.exe");
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |