Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » Deploying Databases and Applications » Using a silent installation for deployment

Creating a silent install Next Page

Running a silent install

Your own installation program must call the SQL Anywhere silent install using the -s option. This section describes how to use a silent install.

To use a silent install
  1. Add the command to invoke the SQL Anywhere silent install to your installation procedure.

    The most likely scenario is that the response file is located in the install image directory and this directory is write-protected (for example, the install image directory is on a compact disk). You can run the silent install by specifying the location of the response file and log file. The log file location must be on a writeable medium. You specify the response file location using the -f1 option. There must be no space between f1 and the quotation mark in the following command line. The -f2 option can be used to specify the location of the log file. Again, there must be no space between f2 and the quotation mark. With InstallShield, it is necessary to specify the full path to the files.

    The following example assumes that the install image directory is in the install directory on the CD in drive d:. The log file is directed to the Windows directory.

    d:\install\setup -s -f1"d:\install\setup.iss" -f2"c:\windows\setup.log"

    To invoke the install from another InstallShield script, you could use the something like the following:

    DoInstall( "sql_anywhere_install_image_path\setup.inx",
       "-s -f1"d:\install\setup.iss" -f2"c:\windows\setup.log"", WAIT );

    You can use options to override the choices of paths for both the SQL Anywhere installation directory and the shared directory:

    setup TARGET_DIR=dirname SHARED_DIR=shared_dir 
    -s -f1"d:\install\setup.iss" -f2"c:\windows\setup.log"

    The TARGET_DIR and SHARED_DIR arguments must precede all other options.

  2. Check whether the target computer needs to restart.

    Setup creates a file named silent.log in the target directory. This file contains a single section called ResponseResult containing the following line:


    This line indicates whether the target computer needs to be restarted to complete the installation, and has a value of 0 or 1, with the following meanings.

  3. Check that the setup completed properly.

    Setup creates a log file named setup.log by default. The log file contains a report on the silent install. A section of this file is called ResponseResult and it contains the following line:


    This line indicates whether the installation was successful. A non-zero ResultCode indicates an error occurred during installation. Here is a list of some of the result codes.

    ResultCode valueDescription
    0 Successful
    -1General error.
    -2Invalid mode.
    -3 Required data not found in the Setup.iss file.
    -4Not enough memory available.
    -5File does not exist.
    -6Cannot write to the response file.
    -7Unable to write to the log file.
    -8Invalid path to the InstallShield Silent response file.
    -9Not a valid list type (string or number).
    -10Data type is invalid.
    -11Unknown error during setup.
    -12Dialog boxes are out of order.
    -51Cannot create the specified folder.
    -52Cannot access the specified file or folder.
    -53 Invalid option selected.

    For a more information on result codes, see your InstallShield documentation.