Summary
This article describes the process to pass multiple command line parameters to an MSI with a Setup wrapper
Synopsis
This article describes the process to pass multiple command line parameters to an MSI with a Setup wrapper. Typically, if a parameter requires quotes to specify a path for instance, if there is more than a single instance within a /v parameter, part of the parameter will not be processed successfully.
Discussion
It appears that if an MSI property is passed, it must be the last parameter listed within the /v arguments and there cannot be more than one instance of property within a single /v call. Please see below for examples.
The following is a simple argument where only one property is being passed. This works as expected:
setup.exe /V"INSTALLDIR=\"C:\Program Files\Test\\""
However, the following will fail:
setup.exe /V"INSTALLDIR=\"C:\Program Files\Test\\" /l*v %TEMP%\log.log"
This, however, will succeed because the property argument is at the end:
setup.exe /V"/l*v %TEMP%\log.log INSTALLDIR=\"C:\Program Files\Test\\""
This will also fail because there is a second property (hence, one of the properties is not the last argument):
setup.exe /V"/l*v %TEMP%\log.log INSTALLDIR=\"C:\Program Files\Test\\" LOGDIR="C:\log files\\""
Workaround
In this case, what you can do is to specify additional properties within its own /v parameter. For instance, for the last case above, you can specify the following:
setup.exe /V"/l*v %TEMP%\log.log INSTALLDIR=\"C:\Program Files\Test\\"" /V"LOGDIR=\"C:\log files\\""Related Articles
Documentation for Suite Setup.exe Command-Line Parameters, Passing Parameters to Suite Packages 13Number of Views What Command-Line Parameters Are Available for Setup.exe? 11Number of Views InstallShield Setup.exe Command Line Parameters 28Number of Views What Command Line Parameters Are Available for InstallScript 'setup.exe'? 11Number of Views Verbosely Log a Command Line Build 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago