Specify command line parameters for server installation with msiexec
We can specify either standard msiexec command line parameters preceded by a / character, or property=value pairs, or a combination of both.
About this task
The msiexec command can accept the following types of parameter on the command line:
- Standard command line parameters, preceded by a / character
- For more information about the msiexec command line parameters, see the MSDN Command-Line Options web page.
- Property=value pair parameters entered on the command line
- All the parameters that are available for use in a response file can also be used on the command line. For more information about these parameters, see Table 1 in Create and using a response file for server installation.
When using the property=value pair parameters note that:
- Property strings must be in uppercase.
- Value strings are not case-sensitive, except for feature names. We can enclose value strings in double quotation marks. If a value string includes a blank, enclose the blank value string in double quotation marks.
- For a property that can take more than one value, use the format:
ADDLOCAL="Server,Client"- For properties taking paths and file names, for example, PGMFOLDER, we must supply the paths as absolute paths and not relative paths; that is as C:\folder\file and not ".\folder\file".
When using property=value pair and command line parameters with the msiexec command, enter command line parameters first.
If a parameter is specified both on the command line and in a response file, the setting on the command line takes precedence.
Procedure
- For a single installation of IBM MQ, specify the msiexec command as shown in the following typical example. All parameters, separated by one or more spaces, must be typed on the same line as the msiexec call.
msiexec /i "path\MSI\IBM MQ.msi" /l*v c:\install.log /q TRANSFORMS="1033.mst" AGREETOLICENSE="yes" ADDLOCAL="Server"- If we are installing a second copy of IBM MQ, specify the msiexec command as shown in the following typical example. All parameters, separated by one or more spaces, must be typed on the same line as the msiexec call.
msiexec /i "path\MSI\IBM MQ.msi" /l*v c:\install.log /q TRANSFORMS=":InstanceId2.mst;1033.mst" AGREETOLICENSE="yes" ADDLOCAL="Server" MSINEWINSTANCE=1where /l*v c:\install.log writes installation log to file c:\install.log.Parent topic: Installing the server using msiexec