This example shows how to modify the build definition file created
for the IIP from "IIP Example 1: Creating and installing an IIP containing
the application server and a feature pack". Response files are added to each
contribution during creation time and the IIP is installed silently.
Before you begin
You must first create an IIP like one from "IIP Example 1: Creating
and installing an IIP containing the application server and a feature pack".
This example will reuse certain files and values from that example.
About this task
In "Example 2: Silently installing an existing IIP - Modifying
response files at install time", you were able to modify the installation
mode of the IIP because the setting which allows users to override the installation
mode was chosen during IIP creation. Like Example 2, this example will modify
the IIP created in the first example, but the response files will be specified
at creation time and not during install time.
Procedure
- Launch the Installation Factory in GUI mode using the IF_home\bin\ifgui.sh script.
Click Open Build Definition.
- On the Modify Existing Build Definition panel, click Browse and
select the com.ibm.sampiip.1.0.0.0.xml created in Example
1.
- The Build Definition Wizard is displayed. Click Next on
the Mode selection panel, Package Identification panel, Build Information
panel, and Integrated Installation Wizard Settings panel, since we are not
going to leave the default values for these settings.
- On the Construct Integrated Installation Package panel, highlight
the application server invocation in the Installation Package Invocations field
and click Modify.
- On the Installation Package Properties panel, select the Silent
installation (Requires Response File) radio button and click the
Response Files tab. Highlight the non-root response item in the table and
click Modify.
- On the Modify Default Silent Installation Response File panel,
Click Browse to select the response file you want to
include for this CIP being installed as a non-root user. Usually the response
file you want to choose is the one already inside the CIP directory structure.
Note that during IIP creation time, the response file you input in the Directory
path and file name of the default silent installation response file field
will be copied to a location relative to the IIP. For example, because
you are specifying a response file for this invocation for a non-root user,
it will be copied to IIP_root/ResponseFiles/6.1.0-WS-WASND_1-
1/LinuxX32/nonRoot/responsefile.nd.txt. This will be the response
file that should be edited later by the installing user at install time if
changes are necessary. The original response file for the CIP is left untouched
in the CIP. Click OK.
Note: The installation
location in the response file has a lower priority than one specified at install
time. Because you specified during IIP creation in Example 1 that users installing
this IIP can override certain values like the install location, installing
users can specify the installation location in the installation wizard. In
this case, you can safely remove the installation location parameter in the
response file if you wish since it will be specified at install time.
- Repeat the same step for a root user in case users want to perform
a root installation.
- On the Installation Package Properties panel, click OK.
You have now specified a response file for both root and non-root users.
- On the Construct Integrated Installation Package panel, repeat
steps 4-8 for the feature pack CIP.
- Once all four response files have been specified for the invocations,
click Next on the Construct Integrated Installation
Package panel and all following panels until the Summary panel.
- On the Integrated Installation Package Preview panel, click Save
build definition file and generate integrated installation package.
Click Finish.
- Once the IIP is successfully generated, you will see that the response
files are copied into the /newdisk/IF/iip/ResponseFiles directory.
Feel free to modify these response files if needed.
- Launch the IIP installer wizard from/newdisk/IF/iip/bin using
the install.sh command.
- Click Next on the Welcome panel. On the
Installation Selection panel, select an install location for the application
server CIP. You do not need to fill in an install location value for the feature
pack CIP because it will automatically use the application server location
when it installs. The IIP installer will install both invocations in silent
mode.
- Verify the installation using the app_server_root/bin/versioninfo command.
Results
Both the application server and the feature pack contributions were
installed silently using the IIP installation wizard.
A second approach
is to run the IIP installation silently in addition to the contributions in
a completely automated installation. To run the IIP installation silently,
you can use a response file or provide the installation options on the command
line. Using an IIP response file makes the invocation simpler and more easily
repeatable compared to providing options on the command line. There is a sample
IIP response file created for each IIP located at <IIP_root>/iip.
For detailed information on installing silently see Installing an IIP silently.