cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rrbilgi
Level 4

accessing commadline arguments from msi

Hi,

Is there any way to access/read commad line arguments from vbscript/install script passed to a msi? I used in Install Script project CMDLINE system variable to read the command line arguments passed to the exe. Am not finding any such options for Basic MSI project.

Any help is appreciated.

Thanks,
rrb
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

If users (or setup.exe) is passing PROPERTY="Value" strings, you can call MsiGetProperty to get the value of any PROPERTY. There are also built-in properties corresponding to some of the other switches, such as UILevel corresponding to the /q* switches.

For the whole command, I'm not aware of anything built in to MSI; you might be able to use a custom action that calls the GetCommandLine API function, but that would presumably work (I haven't tried this in almost a decade) only in the UI sequence...
0 Kudos
rrbilgi
Level 4

Thanks a lot for the suggestion.
0 Kudos