Harmyder
Flexera beginner

How to read parameter from rul-file

Suppose I run an installer like the following:

setup.exe /v"PARAMETER=Value"

How to read the value of PARAMETER from rul-file?

I understand that I need to use GetProfString and GetProfInt functions but maybe there is a complete example.

0 Kudos
2 Replies
Harmyder
Flexera beginner

Re: How to read parameter from rul-file

I run the installer with the following command

setup.exe /v"SHOWDBGMSGBOX=1"

Then I look into CMDLINE. It is equal to /v"SHOWDBGMSGBOX=1". But how to parse it?

0 Kudos
Thananjeyan_M
Active participant

Re: How to read parameter from rul-file

Hi,

The PARAMETER is called as public property in MSI. We can access this property in (rul) file by using MsiGetProperty  function.

Please refer the below url

https://docs.revenera.com/installshield25helplib/helplibrary/IHelpIScriptWIProperty.htm

Thanks,

Thananjeyan

0 Kudos