Installing features without the Expeditor GUI

In cases where we have either a “headless” Expeditor installation or when we otherwise need to update the platform with new features and plug-ins via a non-Expeditor GUI route (e.g. via a separate install package), there are a couple of options that can be used.

Use an install manifest file

Expeditor has the concept of an install manifest file that essentially provides a script for installing (or removing) features from the platform. An example follows:

<?xml version="1.0" encoding="UTF-8"?>
	<domain-object name="">
				<installfeature id="Acme.PoC" required="true" mergeaction="add">
						<feature id=""
							shared="false" />

In the above example, we are installing version 1.0.0 of the feature from an update site at the URL file:/C:\installers\acme\updatesite. Naturally we could have added more features from other sites. The shared=false setting tells Expeditor we want to install the updates in the user area (workspace) rather than the base installation location for Expeditor. This is a handy separation of application code from base Expeditor.

Having created this manifest for the features and update sites we require, we process it without Expeditor running using the following command line within the Expeditor installation location (e.g. C:\Program Files\IBM\Lotus\Expeditor):

rcp\rcplauncher.exe -application -provisioningOperation provision c:\installers\acme\install.update.xml -provisioningStatusLog mylog.txt -console -data ".\workspace"

where the location of the XML provisioning manifest follows the provision keyword (in the above example the manifest was stored in c:\installers\acme\install.update.xml for example).

Note that the -data option may not be required if the property in your is set. This property tells Expeditor where the user workspace data is to be stored.

Use the provisioning capabilities from the OSGi console

If running in headless mode or console mode, you can achieve the same net effect as the above using an OSGi command using the Provisioning capabilities built into Expeditor. Expeditor provides the prov command to which you simply provide the name of the feature, the version required and the URL of the update site, for example:

prov i 1.0.0 file:/c:\installers\acme\updatesite

The i switch tells Expeditor this is an installation request. Typing ? on the OSGi command line will yield a full description of the prov options.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s