Installation Manager command-line arguments for silent mode

Use the reference tables to learn more about IBM Installation Manager command line (imcl). Command-line arguments consist of commands and options. We can use commands without specifying an option. Most commands do not use a dash. There are several commands that start with a dash for compatible with earlier versions of Installation Manager. We must specify a command when we use an option. Options start with a dash. Restriction: Asterisks (*) must not be used in the Installation Manager command line. When an asterisk is entered, Installation Manager cannot recognize the command-line argument and produces an error.

For information about the imutilsc commands, see Commands for imutilsc.

Table 1 lists commands and Table 2 lists options.

Commands Description
encryptString stringToEncrypt Encrypt the entered string.

In the command-line interface, open the eclipse directory and enter the encryptString command and a string with the -nosplash option to return an encrypted string. The String Encryption Utility window opens and the String to be encrypted field contains the string to encrypt. The Encrypted version of the string field contains the encrypted value to copy into the response file. In the String Encryption Utility, we can change the String to be encrypted field, and then click OK to generate a new encrypted string.

Use encryptString with -passwordKey increase encryption security.

When recording a response file, encrypted strings for passwords are created and stored in the response file. An example of an encrypted string from a response file for IBM Rational ClearCase :

profile installLocation='C:\Program Files\IBM\RationalSDLC' id='IBM Rational SDLC'
data key='user.CC_ServerProcessPassword,com.ibm.rational.clearcase.nt_i386' value='1ML/Coqkg33e5616BcUnYg=='
/profile

After we record the response file, use encryptString to generate and paste different encrypted strings into the response file. For example, we record a response file. You have five computers to install an IBM product on using the response file. Each of the five computers requires a different password value for a data key in the response file. Before we run the installation on one of the computers, generate the encrypted string for the password to be used on the computer. Copy the encrypted string into the response file. Start the silent installation with the updated response file.

exportInstallData outputFileName Export installation data to the specified file in a .zip format where outputFileName is the name of the generated file that contains the exported data. In the command-line interface, open the eclipse directory and enter the exportInstallData command and file name with the -noSplash option to export installation data.

help, -help, -h, -? help command help all Show a description of Installation Manager command-line arguments.

When the help command is used with another command, a description of the command shows. When used with all, additional help commands display.

input responseFile Specify an XML response file as the input to Installation Manager or the Installation Manager installer. The response file contains commands that Installation Manager or the Installation Manager installer run. Use with the options:

Do not use with the commands:

  • install
  • modify
  • rollback
  • uninstall
  • uninstallAll
  • updateAll

We can use a file path or a URL for the responseFile value. These examples show file paths and URL strings:

  • File path:

    • Windows: input C:\response_files\myresponsefile.xml
    • Linux, UNIX, and OS X: input /response_files/myresponsefile.xml

  • URL: input http://server/response_files/myresponsefile.xml

If credentials are required see Store credentials. Credentials must be stored in a storage file or a key ring file and not in the silent installation scripts.

We can record a response file, edit a sample response file, or manually create a response file.

updateAll Update all installed packages from service repositories and repositories defined in the Installation Manager preferences. Use the updateAll command with:

  • -installationDirectory
  • -installFixes
  • -properties
  • -repositories
Do not use updateAll with the command:

  • input
version Show the version and internal version of Installation Manager.

Options Description
-acceptLicense Include the -acceptLicense option in your command when the package we install requires that you accept the licensing agreement.
-dataLocation, -dL dataLocation Directory location for the data directory, which stores information about installed packages. We set this location when we install Installation Manager. Use this option with the Installation Manager installer only. Do not use this option when starting an installed instance of Installation Manager. Do not change this argument after Installation Manager is installed. Changing this argument can damage the installation data. This damage can prevent you from modifying, updating, rolling back, or uninstalling installed packages. If we specify a directory location for -dataLocation that is not the default value, the same location must be used each time we use the Installation Manager installer using the -datalocation option. The installed instance of Installation Manager uses the stored location each time you start Installation Manager. This stored location was specified by the -dataLocation option during the installation. The directory location set by -datalocation must not be a subdirectory of the Installation Manager installation directory.

For information about the types of files and information stored in the agent data location, see Agent data location.

-installationDirectory installation_directory Specify the directory path to the installation location.

The same package might be installed in more than one location. Use this option to specify the installation location.

-installFixes none|recommended|all Choose to install or not to install fixes with the offering. Valid values are:

  • none: No fixes are installed.
  • recommended: Only recommended fixes that are available are installed.
  • all: All available fixes are installed. The available fixes can be either recommended fixes or fixes that are not recommended.
Use with the commands:

  • install: If the offering version is specified, the -installFixes option defaults to none. If no offering version is specified, -installFixes defaults to all.
  • updateAll: If the -installFixes option is not specified, the default value all is used.
-keyring file [ -password password ] The -keyring and -password options are deprecated. Use the -secureStorageFile and -masterPasswordFile options to store credentials. For more information, see Migrate from key ring files to storage files.

Create a key ring file if a key ring file does not exist. The -password password argument is optional. If the password is not specified, Eclipse uses a default password. We can provide stronger encryption by specifying a password to open the key ring file.

The contents of the key ring file are encrypted. We must have write permissions for the key ring file.

For information about storing credentials in a key ring file, see Store credentials.

Installation Manager uses the Eclipse infrastructure to save credentials to a key ring file. For more information about key ring files, see the Eclipse workbench user guide.

--launcher.suppressErrors Suppress the Java™ virtual machine (JVM) error dialog.
-log, -l log_file Specify a log file that records the result of Installation Manager operations. The log file is an XML file.

Do not use -log when we record a response file.

-nl value When you include the nl option and a language code with a command, the behavior of the command line adjusts according to the settings for the specified language.

You can access a list of language codes at the Library of Congress site Codes for the Representation of Names of Languages. Installation Manager supports only some of the languages that are listed. Of those languages, Installation Manager uses the ISO 639-1 Code, which uses the two-letter codes and not the ISO 639-2 Code, which uses the three-letter codes.

Some languages support only partial translations. When a language is partially translated, the non-translated content is presented in English.

For a list of languages that Installation Manager supports, see Start Installation Manager. For a list of languages that a package supports, see the documentation for that package.

-nosplash Suppress the splash screen.
passwordKey, -pK passwordKey Use passwordKey to encrypt or decrypt passwords.
-properties key_1=value_1a,,value_1b, key_2=value_2 Define the package group profile properties, such as languages.

We can include a list of properties by separating each with a comma. For properties that have multiple values, we must use two commas between the values: key_1=value_1a,,value_1b.

The list contains the predefined property keys and related values:

  • eclipseLocation: Specifies an existing Eclipse location value, such as c:\myeclipse\eclipse.
  • cic.selector.arch: Specifies the architecture to install: 32-bit or 64-bit.
  • cic.selector.os: Specifies the operating system.
  • cic.selector.ws: Specifies the type of window system.
  • cic.selector.nl: Specifies the language pack to install using ISO-639 language codes such as zh, ja, and en.

    If we install the translations for an offering, we must include the cic.selector.nl property key in your command. Example: -properties cic.selector.nl=en,,fr,,pt_BR. Our language choices apply to all packages installed in the package group.

For information about the supported values for the cic.selector.key keys, see Table 3.

We can find additional property keys in the documentation for the product that we install.

Use the option with this commands:

  • updateAll
-record responseFile Generates a response file from actions in the Installation Manager UI, command line, or console mode, and specifies the location of the response file.
-secureStorageFile storage_file -masterPasswordFile master_password_file Use these options to store credentials for repository authentication.

The -secureStorageFile option specifies the file and path to the storage file.

The -masterPasswordFile option specifies the file and path to the master password file. The master password file is a text file that contains a passphrase and used to encrypt sensitive contents in the storage file.

For information about storing credentials in a storage file, see Store credentials.

-showProgress, -sP Show a progress bar on the console.
-showVerboseProgress, -sVP Show progress text on the console. For example, the text Reboot the machine to complete the install. is shown when a restart of the computer is required.
-skipInstall, -sI dataLocation Record a response file without installing the IBM product. The dataLocation value specifies the directory location for the installation folders and files. Although the IBM product is not installed, the files and folders that are required for installation are created and stored in the specified directory. The directory must be writable. Verify that the file paths in the argument exist. Installation Manager does not create directories for response files. Do not specify an existing dataLocation directory for the new dataLocation location value. See Agent data location for default locations of the dataLocation directory. When recording a response file using the -skipInstall argument, we must keep the directory, folders, and files that are created. By keeping the dataLocation directory, we can modify the installation later. When recording a new response file to modify the installation, we must specify the same directory for dataLocation. Use a different dataLocation value for each version of an IBM product that we install. We must first record an installation of an IBM product using -skipInstall before recording an update.

-stopBlockingProcesses Installation Manager finds and stops processes that are running. These processes lock files that must be accessed or modified by Installation Manager.
-vm Specifies the Java launcher. In silent mode, always use java.exe on Windows, and java on UNIX.

See: