Installing in Unattended Mode

To perform a silent installation, run the installer while answering the prompts with a response file.

There are two methods to generate a response file for the installer, either:
  • Run the installer in GUI or console mode and record the reponses to the response file. You can edit the response file to customize the responses.
  • Run the installer and have it write out a template file. The template file contains all of the questions, but no responses. You can use an editor to edit the template file so that it provides responses to the prompts.

The response file invokes the installer, which takes actions based on your recorded or customized responses to the prompts.

  1. Change default directory to the CD or DVD.
  2. Run the setup program with the -options-record filename:
    ./setup -is:javaconsole -options-record <full_path_response_file>
  3. Run through the installation saving all of the responses.
  4. Edit the response file to customize it for your needs.
  5. 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 -silent -options <full path response file>
    -W SybaseLicense.agreeToLicense=true
  6. Restart the machine when the silent installation is complete.
  7. To generate a template response file, skip step 3 and alter step 2 above to do the following:
    ./setup -is:javaconsole -options-template <full path response file>
    Note:

    The value for -options, -options-template, and -options-record must specify an absolute path.

    In either case it is possible to custom configure the servers, 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. Set the following options at the command line level to specify actions to take when installing in silent mode:

    1. replaceExistingResponse – stores your response to whether you want to replace a file that currently exists on your system with the one being installed.
    2. 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.
    3. removeExistingResponse – stores your response to whether you want to remove a file that currently exists on your system.
    4. 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
    ./setup -is:javaconsole
    -silent
    -options <full path response file>
    -W SybaseLicense.agreeToLicense=true
    -G replaceNewerResponse=”yesToAll”


Created April 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com