[Windows]

Modifying a server installation silently using msiexec

You can silently remove or install IBM® MQ features on Windows by using msiexec.

About this task

You can silently modify an installation by using the msiexec command with the ADDLOCAL and REMOVE parameters.

Procedure

To silently modify an installation using msiexec, set the ADDLOCAL parameter to include the features you want to add, and set the REMOVE parameter to the features you want to remove.

For example, if you use ADDLOCAL="JavaMsg" and REMOVE="" it modifies the installation to include the JavaMsg feature but does not remove any currently installed features.


msiexec /i {product code} /q ADDLOCAL="JavaMsg" REMOVE="" INSTALLATIONNAME="Installation1"
where product_code is the value shown for MSIProdCode in the output of the following command:

dspmqinst -n installation_name
An example of a product code is {0730749B-080D-4A2E-B63D-85CF09AE0EF0}.

[V9.0.1 Nov 2016]For Continuous Delivery from IBM MQ 9.0.1, the JavaMsg feature is named Extended Messaging APIs. For Long Term Support, this feature is still named Java and .NET Messaging and Web Services.

[V9.0.2 Mar 2017]Important: When specifying which features to remove with the REMOVE parameter:
  • If you want to silently uninstall the Server feature, and the Web Administration (Web) feature is installed, you must also silently uninstall the Web feature at the same time by specifying REMOVE="Web,Server".
  • If you want to silently uninstall the Java Runtime Environment (JRE) feature, and the Web Administration (Web) feature is installed, you must also silently uninstall the Web feature at the same time by specifying REMOVE="Web,JRE".