Silent installation is a simple two-step process of generating a state file and then using that state file. To generate a state file, you record the installation process, entering all the required information that you would enter during a standard installation. Then you run the installation program with the state file as the input source.
This section describes how to generate a state file for installing a web agent.
You need to initially issue a command for recording the information you will enter as you follow the agent installation steps. Enter all the necessary installation information in order to create a complete state file.
The following task describes how to generate a state file for a web agent installation
Change to the directory in which you unpacked the agent binaries.
Issue the command that applies as follows:
java agent_WINNT_iis5 -saveState filename
An option that saves all of your responses to installation prompts in a state file.
Represents the name that you choose for the state file.
Enter the installation information as described in Installing Agent for Microsoft IIS 5.0.
Your answers to the prompts are recorded in the state file. When the installation is complete, the state file is created in the same directory where the installation program is located.
When generated, a state file will have read permissions for all users. However, because the state file contains clear text passwords, change the file permissions to restrict read and write access to the user root.
This section describes how to use a state file for installing a web agent.
To perform a silent installation of a web agent using a state file, perform the following:
Change to the directory in which you unpacked the agent binaries.
At this point, this directory should contain the web agent installation state file.
Issue the following command:
java agent_WINNT_iis5 -nodisplay -noconsole -state filename
An option that directs the installer to run in non-interactive mode as it obtains all responses to prompts from the named state file.
Represents the name of the state file from which the installer obtains all responses.
The installation takes place hidden from view. After completion, the program exits automatically and displays the prompt.
Even though the silent installation does not validate the keys in the state file, avoid editing the values of the keys in the state file because the setupSDK script might report a corrupt state file when used during subsequent silent installations.