InstallShield 2018 » 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 EzConfigGetValue function.
*
* EzConfigGetValue is called to retrieve a value from a key in
* the default configuration file. Unless changed by a call to
* ConfigSetFileName, the default configuration file is the
* Config.sys file that resides in the root of the boot drive.
*
\*--------------------------------------------------------------*/
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_EzConfigGetValue(HWND);
function ExFn_EzConfigGetValue(hMSI)
NUMBER nvValue;
begin
// Retrieve the numeric value of the FILES key from the
// default configuration file.
if (EzConfigGetValue ("FILES", nvValue) < 0) then
// Report the error.
MessageBox ("EzConfigGetValue failed.", SEVERE);
else
// Display the value of the FILES key.
SprintfBox (INFORMATION, "EzConfigGetValue Example",
"FILES = %d", nvValue);
endif;
end;
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |