Use the MQParms command

 

We can use the MQParms command to invoke installation or uninstallation. This command can use parameters on a command line, or those specified in a parameter file. The parameter file is an ASCII text file that contains the parameter values that you want to set for the installation. The MQParms command takes the specified parameters and generates the corresponding Msiexec command line.

This means that we can save all the parameters that you want to use with the Msiexec command in a single file.

For a silent installation, this must include the /q or /qn parameter, either on the command line, or in the [MSI] stanza of the parameter file. You must also set the AGREETOLICENSE parameter to "yes".

We can specify many more parameters in the parameter file that you use with the MQParms command than we can in the response file that you use directly with the Msiexec command. Also, as well as parameters that the WebSphere MQ installation uses, we can specify parameters that can be used by the Prepare WebSphere MQ wizard.

An example of the file MQParms.ini is supplied with WebSphere MQ. This file contains default installation parameters.

There are two ways to create a parameter file for installation:

To invoke installation using the MQParms command:

  1. From a command line, change to the root folder of the WebSphere MQ Server CD (that is, the location of the file MQParms.exe).

  2. Enter the following command:
    MQParms [parameter_file] [parameters]  

    where:

    parameter_file

    is the file that contains the required parameter values. If this file is not in the same folder as MQParms.exe, specify the full path and file name. If you do not specify a parameter file, the default is MQParms.ini. For further details, see Parameter file.

    parameters

    are one or more command line parameters, as listed in Table 1.

A typical example of an MQParms command is:

MQParms MyParams.ini /l*v c:install.log

If you specify a parameter both on the command line and in the parameter file, the setting on the command line takes precedence.

If you specify a parameter file, you might want to run the encryption utility before you use the MQParms command (see Encrypting a parameter file).

If you do not specify /i, /x, /a, or /j, MQParms defaults to standard installation using the WebSphere MQ Windows Installer package, IBM WebSphere MQ.msi. That is, it generates the following part of the command line:

/i "current_folder\MSI\IBM WebSphere MQ.msi"

If you do not specify a WIZPARMFILE parameter, MQParms defaults to the current parameter file. That is, it generates the following part of the command:

WIZPARMFILE="current_folder\current_parameter_file"

 

Parent topic:

Unattended (silent) installation