Your own installation program must call the SQL Anywhere silent install using the -s option. This section describes how to use a silent install.
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.
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.
Reboot=0 No restart is needed.
Reboot=1 The BATCH_INSTALL option was set during the installation, and the target computer needs to be restarted. The installation procedure that called the silent install is responsible for checking the Reboot entry and for restarting the target computer, if necessary.
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.
|-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 InstallShield Silent response 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.|
For a more information on result codes, see your InstallShield documentation.