Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System Installation Guide for Microsoft Windows 

Chapter 8
Installing the Software in Silent Mode

Silent installation is a non-interactive installation mode used for installing Sun Java™ Enterprise System on multiple hosts that share similar configurations. This chapter provides instructions for using the silent mode to install the Sun Java Enterprise System software.

An installation using Windows installation wizard receives the input for installation from the user in the form of responses to dialog boxes. However, a silent installation does not prompt the end user for input. Instead, a silent installation gets the inputs from the Install Shield Silent response file (.iss file). This file is called the Response file.

A Response file contains information that an user would enter as responses to dialog boxes when running a record installation with the Windows installation wizard. During a silent installation, the Setup.bat reads the necessary input from the response file at run time.

This chapter includes the following sections:


Silent Installation Events

To run a silent installation, first run a record installation session to create a Response file that the silent installation process will use. During this interactive installation session, your responses to the installer are captured in the response file. In the response file, your responses are retained as a list of parameters, each representing a single prompt or field. Using the response file as input, you can then run the installer on many hosts. This process allows you to propagate one configuration across multiple hosts in your enterprise.

The following table lists the Sun Java Enterprise System silent installation events. The left column lists the high-level tasks and subtasks, and the right column lists the location of instructions for performing the tasks.

Table 8-1  Silent Installation Events

Task

Location of Information

1. Prepare for Silent Install

Develop your installation plan.

Chapter 2, "Developing Your Installation Sequence"

Survey your system for incompatibilities.

What Components Are Installed?

2. Create a Response File

Run the installer to generate a response file for you.

To Generate a Response File Using the Installer

Make a copy of the response file before editing.

 

Edit the response file values for the target systems.

Editing the Response File

3. Perform the Installation

Run the installer specifying the response file.

To Run the Installer in Silent Mode


Creating a Response File

To create a response file, first run the installer for a record installation. A response file generated by the installer takes advantage of the installer’s real-time dependency checking and error reporting.

The format of response files resembles that of an .ini file, but response files have the .iss extension. A response file is a plain text file consisting of sections containing data entries. By default, the response file is called Setup.iss and is created in the Windows System directory.


Caution

If you are an experienced installer, you might be accustomed to building response files manually. However, do not create an original response file manually. This method can cause problems at installation time, configuration time, or server start-up time.


To Generate a Response File Using the Installer

This procedure generates a response file by running the installer on Windows to perform silent installation.

  1. Log in to command prompt and navigate to the directory where the installer is located:
  2. cd <INSTALLDIR>

    Note

    Run \setup.bat and NOT \products\setup.exe to start installation.

  3. Enter the command Setup.bat /r option to generate a response file inside the system's Windows folder.
  4. Running installation with the command Setup.bat /r stores the data in a file called Setup.iss. Though by default the .iss file is created in the Windows System folder, you can specify an alternative response file name and location by use of the /f1 option.

  5. Enter /f1 to specify where the response file is to be created and provide a name. Specify an absolute path for the file which takes .iss extension.
  6. For example, Setup.bat /r /f1"C:\Temp\Setup.iss".

    An absolute path is required because using a relative path gives unpredictable results.

  7. Proceed with installation as you would like the silent installer to do.
  8. All the information about the data entered and options selected at run time (for a record setup for Sun Java Enterprise System Windows Installer) is recorded in the <filename>.iss or the default file name Setup.iss.

  9. The response file is ready for use with the options selected during the record installation. The response file can be edited manually to modify the options recorded.

Editing the Response File

After you have generated a response file, you may edit it to modify local parameters. These parameters include Administrator User ID, Administrator Password and Retype Password.

When editing the response file, follow the guidelines below.

The section header [{311E6252-893E-4445-B865-94DAFF5C500C}-SdWelcome-0] indicates that the data pertains to the SdWelcome dialog box for a product with ProductCode (and PRODUCT_GUID) value {311E6252-893E-4445-B865-94DAFF5C500C }.

The -0 at the end of the header indicates that this is the first call to SdWelcome. If the installation displayed a second SdWelcome dialog box, its header would end with -1.

The Result=1 indicates the return value from the SdWelcome function. The return value 1 indicates that you clicked the Next button.


Running the Installer in Silent Mode

Run the installer on a machine that has the same operating system as the machine on which you generated the response file.

To run an installation silently based on the contents of a response file, run the Setup.bat with the /s argument. By default, Setup.bat looks for a response file called Setup.iss in the same directory as Setup.bat. You can use /f1 argument to specify an alternative name and location of the response file.

A silent installation program does not display a dialog if an error occurs. It records the status information in a file called Setup.log. By default it is created in the same directory from where the response file is being used. You can specify a different name and location for the log file using the /f2 argument to Setup.bat.

    To Run the Installer in Silent Mode
  1. Log in to command prompt and navigate to the directory where the installer is located:
  2. cd <INSTALLDIR>

  3. Enter the command Setup.bat /s option to initiate a silent mode installation process.

    Note

    By default the setup.iss file is created in Windows System folder. You need to copy this file from the Windows System to the folder where the setup.bat exists before starting silent installation as setup.bat /s. Else it will return -3 error in setup.


When running installation in a silent mode, a log file is created by default in the same directory where the setup.bat is located, named Setup.log. If the /f2 option was used, a log file of the same name as the response file is created with .log extension.

  1. Enter /f2 to specify an alternative log file location and file name. Specify an absolute path for the file.

For example, Setup.bat /s /f2"C:\Setup.log".

Specify an absolute path. Using a relative path leads to unpredictable results.

Silent installation can be lengthy, depending on the number and type of components that you are installing. While the installer is running, you can monitor its progress by examining changes to the installation log.

Understanding the Setup.log File

Setup.log is the default name for the silent installation log file generated when the you run the Setup.bat with the /s argument. By default it is created in the directory containing the response file Setup.iss. You can specify a different name and location for Setup.log using the /f2 option.

The Setup.log file contains three sections. The first section is called Install Shield Silent. It identifies itself as a log file and provides the version of Install Shield Silent used in the silent setup.

The second section is called Application. It identifies the name and version of the installed application, as well as, the company name.

The third section is called Response Result. It contains the result code indicating whether or not the silent setup succeeded. An integer value is assigned to the ResultCode key name in the Response Result section. Install Shield places one of the following return values in the ResultCode key:

Table 8-2  Log File Response ResultCode Key

ResultCode

ResultCode Description

0

Success

-1

General error

-2

Invalid mode

-3

Required data not found in the Setup.iss file

-4

Not enough memory available

-5

File does not exist

-6

Cannot write to the response file

-7

Unable to write to the log file

-8

Invalid path to the Install Shield Silent response (.iss) file

-9

Not a valid list type (string or number)

-10

Data type is invalid

-11

Unknown error during setup

-12

Dialog boxes are out of order

-51

Cannot create the specified folder

-52

Cannot access the specified file or folder

-53

Invalid option selected

The Setup.log file for a successful silent installation appears as follows:

[ResponseResult]

ResultCode=0


Next Steps

After having completed the silent installation, proceed to Post-installation Configuration for Configure Later Option for final instructions on configuring your components. Although you might have done extensive configuration during your installation, most components require some additional configuration.


Note

Review the postinstallation configuration requirements carefully before proceeding to any other tasks.




Previous      Contents      Index      Next     


Part No: 819-1652-10.   Copyright 2005 Sun Microsystems, Inc. All rights reserved.