This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- accessing commadline arguments from msi
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
02:27 AM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
05:29 PM
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...
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...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2008
01:06 PM
Thanks a lot for the suggestion.