I have an old InstallScript MSI project that needs to be converted in order to be able to run also in Silent mode.
It is hardcoded by events, so what I have done is to change the OnBegin event with the following code:
The problem is that I always get Level 2 even when I run the Setup without the parameter /s.
It seems that InstallShield can't detect the proper UI Level when it's a custom InstallScript MSI project. I tried with MergeModule or Basic MSI and it works as expected.
Should I use a different approach in this case?
It is hardcoded by events, so what I have done is to change the OnBegin event with the following code:
Code:
function BOOL IsSilent()
string uiLevelName;
number buffer;
begin
buffer = 256;
MsiGetProperty(ISMSI_HANDLE, "UILevel", uiLevelName, buffer);
SprintfMsiLog("Is Silent " + uiLevelName);
if(uiLevelName = "2") then
return TRUE;
endif;
return FALSE;
end;It seems that InstallShield can't detect the proper UI Level when it's a custom InstallScript MSI project. I tried with MergeModule or Basic MSI and it works as expected.
Should I use a different approach in this case?