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 SetDialogTitle function.
*
* SetDialogTitle is called to change the title of the
* AskYesNo dialog.
*
\*--------------------------------------------------------------*/
#define TITLE_TEXT "SetDialogTitle Example"
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_SetDialogTitle(HWND);
function ExFn_SetDialogTitle(hMSI)
NUMBER nCheck1, nCheck2;
begin
// Set the title for the AskYesNo dialog.
if (SetDialogTitle (DLG_ASK_YESNO, TITLE_TEXT) < 0) then
// Report an error.
MessageBox ("SetDialogTitle failed.", SEVERE);
else
// Display the AskYesNo dialog with its new title.
AskYesNo ("Did SetDialogTitle change this title?", YES);
endif;
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |