cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Galfat
Level 3

Read parameter from command line

Hi,
I have Installscript MSI project, I would like to run it with parameter with (/v) and during the installscript to use this parameter.
What's the way to read this parameter to a srting ?
Thanks, Gal.
Labels (1)
0 Kudos
(2) Replies
anilkumar_mca
Level 8

Hi,

did u tried this? if not try and check....

setup.exe /V"MYPROPERTY=0"

you should declare MYPROPERTY in your Property table...

In script you can access this MYPROPERTY using
MsiGetProperty(ISMSI_HANDLE, "MYPROPERTY", szValue, nBuffer);

hope this helps to u 🙂
0 Kudos
Galfat
Level 3

Hi,
Thanks. It is working.
Gal.
0 Kudos