WebSphere Message Brokers
File: as04530_
Writer: Lorraine Waitt

Task topic

This build: July 31, 2007 21:37:07

Detecting installed versions of WebSphere Message Broker

Detect the version of WebSphere® Message Broker using registry entries.

You can include, as part of your user-defined extension, code to detect the version of WebSphere Message Broker that is installed on a user's machine.

Detecting installed versions on Windows

You can use the following instructions in your installer scripts to test for the following versions of WebSphere Message Broker. To detect each version, look for the registry key given for each version.

WebSphere Business Integration Message Broker Version 5.0 toolkit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
mqsi.studio\DisplayVersion = 5.x.x.x
In this example, x can be any integer.
WebSphere Business Integration Message Broker Version 5.0 runtime components
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
mqsi.ib\DisplayVersion = 5.x.x.x
In this example, x can be any integer.
WebSphere Message Broker Version 6.0 toolkit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
WMBT60\DisplayVersion = 6.x.x.x
In this example, x can be any integer.
WebSphere Message Broker Version 6.0 runtime components
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
mqsi60\DisplayVersion = 6.x.x.x
In this example, x can be any integer.
Start of changeWebSphere Message Broker Version 6.1 toolkitEnd of change
Start of change

Check for the presence of the files \Application Data\IBM\Installation Manager\installed.xml and \Application Data\IBM\Installation Manager\installRegistry.xml in your home directory. (The default home directory is C:\Documents and Settings\All Users: this setting might have a different value on your system.)

End of change
Start of changeWebSphere Message Broker Version 6.1 runtime componentsEnd of change
Start of change
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
mqsi61\DisplayVersion = 6.x.x.x
In this example, x can be any integer.End of change

Detecting installed versions on Linux and UNIX systems

Linux® and UNIX platforms do not have a common packaging method: you must check which files are present in the file system. Look for the files listed below for each version of WebSphere Message Broker that you want to detect.

WebSphere Business Integration Message Broker Version 5.0 runtime components

AIX platform Check for the presence of /usr/opt/mqsi/bin/mqsilist. Also check that /usr/opt/mqsi/bin/mqsiprofile is not present.

On Linux and other UNIX systems, check for the presence of /opt/mqsi/bin/mqsilist and make sure that opt/mqsi/bin/mqsiprofile is not present.

WebSphere Message Broker Version 6.0 runtime components

To detect Version 6 and later runtime components, look for the file /var/mqsi/install.properties. Each line in this file contains an installation path and V.R.M.F version information.

WebSphere Message Broker Version 6.0 toolkit

To detect Version 6 and later toolkits, look for the existence of /etc/IBM/WebSphereMessageBrokersToolkit/products/com.ibm.wbmt.

To determine the version, use the following code example. Shell-script notation is used in this code: '-e' means if file exists.
if [ -e /etc/IBM/WebSphereMessageBrokersToolkit/products/com.ibm.webt  ]
  # Event Broker installed
      if [ -e `grep location /etc/IBM/WebSphereMessageBrokersToolkit/products/
				com.ibm.webt | sed 's/location=//'`/webt_prod/version.txt` ]
        # it is FP1 or greater
        get version from version.txt
      else
        #version is 6.0
      fi
    fi
  if [ -e /etc/IBM/WebSphereMessageBrokersToolkit/products/com.ibm.wmbt ]
    # Message Broker installed
    if [ -e `grep location /etc/IBM/WebSphereMessageBrokersToolkit/products/
				com.ibm.wmbt | sed 's/location=//'`/wmbt_prod/version.txt` ]
      #It is FP1 or greater
      get version from version.txt
    else
      #version is 6.0
    fi
  fi
	
Start of changeWebSphere Message Broker Version 6.1 runtime componentsEnd of change
Start of change

To detect Version 6 and later runtime components, look for the file /var/mqsi/install.properties. Each line in this file contains an installation path and V.R.M.F version information.

End of change
Start of changeWebSphere Message Broker Version 6.1 toolkitEnd of change
Start of change

Check for the presence of the files /var/ibm/InstallationManager/installed.xml and /var/ibm/InstallationManager/installRegistry.xml.

End of change
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:37:07

as04530_ This topic's URL is: