ISMSI_HANDLE
InstallShield 2020 ยป InstallScript Language Reference
This system variable is set to the handle of the currently running .msi database, and can be used in event-handler functions as an argument to Windows Installer API functions that require a handle to the currently running database.
For example, to retrieve the value of the USERNAME property in the OnBegin event handler, you can use code similar to the following:
function OnBegin( )
STRING svUsername[256];
NUMBER nBuffer;
begin
nBuffer = 256;
MsiGetProperty(ISMSI_HANDLE, "USERNAME", svUsername, nBuffer);
MessageBox("USERNAME = " + svUsername, INFORMATION);
end;
Project:ISMSI_HANDLE is not supported in Basic MSI projects, and is not supported in InstallScript custom actions.