[Windows]

Specifying command line parameters for client installation with msiexec

You 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 parameters 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.
For an unattended installation, you must include the /q or /qn parameter in the command line. Without this parameter, the installation is interactive.
Note: You must include the /i parameter and the file location of the IBM® MQ installer package.
Property=value pair parameters on the command line
All the parameters that are available for use in a response file can be used on the command line. For more information about these parameters, see Table 1 in Creating and using a response file for client installation.
There are some extra property=value pair parameters, shown in the following table that are only for use on the command line:
Table 1. Parameters that can be used on the command line only (msiexec property=value parameters)
Property Values Meaning
USEINI path \ file_name Use the specified response file. See Creating and using a response file for client installation
SAVEINI path \ file_name Generate a response file during installation. The file contains those parameters selected for this installation that a user might make during an interactive installation.
ONLYINI 1|yes| "" 1, yes or any value other than null. End the installation before updating the target system, but after generating a response file, if this is specified.

"". Continue the installation and update the target system (the default).

TRANSFORMS :InstanceId x.mst| path \ file_name | :InstanceId x.mst; path \ file_name The :InstanceId x.mst value is only required for a subsequent installation of IBM MQ. The path \ file_name specifies what transform (.mst) files must be applied to the product. For example, 1033.mst specifies the supplied U.S. English transform file.
MSINEWINSTANCE 1 This property is only required for subsequent installations of IBM MQ.
REMOVEFEATURES yes Required with value "yes" for a silent installation, otherwise ignored. Allows obsolete features, no longer part of IBM MQ, to be deleted.
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. You 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, you must supply the paths as absolute paths and not relative; that is, 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.
    
    msiexec /i "path\MSI\IBM MQ.msi" /l*v c:\install.log
    /q TRANSFORMS="1033.mst" AGREETOLICENSE="yes" ADDLOCAL="Client"
    
  • If you are installing a second copy of IBM MQ, specify the msiexec command as shown in the following typical example.
    
    msiexec /i "path\MSI\IBM MQ.msi" /l*v c:\install.log
    /q TRANSFORMS=":InstanceId2.mst;1033.mst" AGREETOLICENSE="yes"
    ADDLOCAL="Client" MSINEWINSTANCE=1