InstallShield 2018 ยป InstallScript Language Reference
//---------------------------------------------------------------------------
//
// InstallScript Example Script
//
// Demonstrates the following functions:
// *SuiteSetProperty
// *SuiteGetProperty
// *SuiteResolveString
// *SuiteFormatString
// *SuiteLogInfo
//
// This sample can be called in an InstallScript package that is launched
// from an Advanced UI or Suite/Advanced UI installation. This code logs
// the following line in the Advanced UI or Suite/Advanced UI debug log:
// SetGet: MyPropertyValue; Resolved: English (United States); Formatted: fmt MyPropertyValue;
//
//---------------------------------------------------------------------------
function OnBegin()
STRING szValue;
STRING szResolved;
STRING szFormatted;
begin
if SUITE_HOSTED then
SuiteSetProperty ("MyPropertyName", "MyPropertyValue");
SuiteGetProperty ("MyPropertyName", szValue);
SuiteResolveString ("IDS_LANGUAGE_1033", szResolved);
SuiteFormatString ("fmt [MyPropertyName]", szFormatted);
SuiteLogInfo ("SetGet: %s; Resolved: %s; Formatted: %s;",
szValue, szResolved, szFormatted);
endif;
end;
See Also
Guidelines for Adding Packages to an Advanced UI or Suite/Advanced UI Project
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |