Create a script to silently install Installation Manager and a package at the same time
We can silently install Installation Manager at the same time we install a product package. To silently install Installation Manager and a product package, we can create a script to run both installations. We can also edit a response file to install Installation Manager and a product instead of using a script. See Modify a response file to install a package and Installation Manager.
- To silently install a product package, we must first create a response file.
- Some Installation Manager features might or might not be supported by packages. Check the package documentation to determine whether a feature is supported. For a list of features, see Installation Manager features.
If we are installing using UNC paths, we must install silently.
- On Windows, if we are using a network drive, we must mount the drive. Use the pushd command to mount the drive. See Install Installation Manager and a package with UNC paths on Windows.
The script to install Installation Manager and a product package contains two lines. The first line is the command to start the Installation Manager installation. The second line is the command to start the silent installation of a product package.
Procedure
To create a script:
Example scriptsWhere responseFile.xml is the response file for the product package.
- A .bat file for Microsoft Windows:
installc installc input responseFile.xml -acceptLicense- A shell script file for UNIX:
./installc ./installc input responseFile.xml -acceptLicense
Example
Use double quotation marks to enclose file paths that include spaces.
Operating system Script (without response file) Script (with response file) Windows (.bat file) installc.exe -acceptLicense installc.exe input responseFile.xml -acceptLicense Linux, UNIX, IBM i, z/OS, and OS X ./installc -acceptLicense ./installc input responseFile.xml -acceptLicense Related tasks:
- Install Installation Manager and a package with UNC paths on Windows
We can install IBM Installation Manager and a package using UNC (Uniform Naming Convention) paths. When we run your script with a UNC path, we must specify relative paths to the Installation Manager and package repositories in the response file.
Modify a response file to install a package and Installation Manager Related reference:
Installation Manager command-line arguments for silent mode
Home