A silent installation (sometimes referred to as an unattended install) is done by running the Installer and providing a response file that contains answers to all of the Installer’s questions. There are two methods of generating a response file for the Installer. The first method is to run the Installer in GUI mode and record all of the responses into a response file. This response file then be edited with an editor to customize the responses if needed.
The second method is to run the Installer and have it write out a template file. The template file contains all of the questions, but no responses. It can then edited to provide responses for each of the questions. The Installer is then invoked with the response file and all questions are answered by reading from the response file.
To perform the silent installation using the resource file that you created by running the Installer through the installation process:
Change default directory to the CD.
Run the setup program with the -options-record filename:
setup -options-record <full path>session1.txt
Run through the installation saving all of the responses.
Edit the response file to customize it for your needs.
The response file generated by the installer has three property names associated with the Job Scheduler that are spelled incorrectly. The following corrections should be made to the response file:
Change configJSPanel.getManagementDevice to configJSPanel.managementDevice
Change configJSPanel.getManagementDeviceSize to configJSPanel.managementDeviceSize
Change configJSPanel.getManagementDatabaseSize to configJSPanel.managementDatabaseSize
Run the setup program with the -options filename and -silent command line arguments. Additionally you must include the -W argument that indicates that you accept the license agreement.
setup -is:javaconsole -options <full_path>session1.txt -silent -W SybaseLicense.agreeToLicense=true
To generate a template response file, skip step 3 and alter step 2 above to do the following:
setup -is:javaconsole -options-template <response file in absolute path>
In either case it is possible to custom configure the servers as well as being able to select a typical install and use the default configuration values.
Except for the absence of the GUI screens all actions of the Installer are the same and the result of an installation in silent mode is exactly the same as one done in GUI mode with the same responses.
The value for -options, -options-template, and -options-record must specify an absolute path.
Installation in silent mode can fail when a response is required from the user. Such a response is required when files already exist on disk and appear to be newer than the files the installer is attempting to install, or when files have been modified by the user.
Set the following options at the command line level to specify actions to take when installing in silent mode:
replaceExistingResponse – stores your response to whether you want to replace a file that currently exists on your system with the one being installed.
replaceNewerResponse – stores your response to whether you want to replace a file that currently exists on your system with the one being installed if the existing file is newer than the file being installed.
removeExistingResponse – stores your response to whether you want to remove a file that currently exists on your system.
removeModifiedResponse – stores your response to whether you want to remove a file that has been modified since installation.
Any of these options can be specified on the command line or within the options file as follows:
-G <option>="<value>"
Valid values are:
yesToAll
yes
noToAll
no
For example:
./setup -is:javaconsole -silent -options <responseFileName> -W SybaseLicense.agreeToLicense=true -G replaceNewerResponse="yesToAll"