Creating a script to silently install Installation Manager and a package at the same time
You can silently install Installation Manager at the
same time you install a product package. To silently install Installation Manager and a
product package, you can create a script to run both installations.
You can also edit a
response file to install Installation Manager and a
product instead of using a script. See Modifying a response file to install a package and Installation Manager.
Before you begin
- To silently install a product package, you must first create a response file.
- Some Installation Manager features might or might not be supported by packages. Check your package documentation to determine whether a feature is supported. For a list of features, see Installation Manager features.
- If you are installing by using UNC paths, you must install silently.
- On Windows, if you are using a network drive, you must
mount the drive. Use the
pushd
command to mount the drive. See Installing Installation Manager and a package with UNC paths on Windows.
About this task
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
The following steps describe how to create a script:
Example scripts
- A .bat file for Microsoft Windows:
installc installc input responseFile.xml -acceptLicense
- A shell script file for Linux®, UNIX, IBM i, IBM z/OS®,
and the OS X operating system:
./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 the OS X operating system | ./installc -acceptLicense | ./installc input responseFile.xml -acceptLicense |