Checking for Errors Using the Setup.log File

InstallShield 2012 Spring

Project: This information applies to the following project types:

InstallScript
InstallScript MSI

Setup.log is the default name for the silent installation log file—generated when the end user runs Setup.exe with the /s argument—and it is by default created in the directory containing the response file Setup.iss. You can specify a different name and location for Setup.log using the /f1 and /f2 switches to Setup.exe.

The Setup.log file contains three sections. The first section, [InstallShield Silent], identifies the version of InstallShield Silent used in the silent installation. It also identifies the file as a log file.

The second section, [Application], identifies the installed application's name and version, and the company name.

The third section, [ResponseResult], contains the result code indicating whether the silent installation succeeded. An integer value is assigned to the ResultCode keyname in the [ResponseResult] section. The installation places one of the following return values in the ResultCode key.

Project: Note that in an InstallScript MSI installation, there is no initialization process for reading or writing response files. As a result, the only errors that may occur for InstallScript MSI installation are -3 for silent installations and -6 for recording installations. Thus, the following table shows applicable project types where appropriate.

Return Values for the Setup.log File

Result Code

Project Type

Description

0

InstallScript, InstallScript MSI

Success.

-1

InstallScript

General error.

-2

InstallScript

Invalid mode.

-3

InstallScript, InstallScript MSI

Required data not found in the Setup.iss file.

-4

InstallScript

Not enough memory available.

-5

InstallScript

File does not exist.

-6

InstallScript, InstallScript MSI

Cannot write to the response file.

-7

InstallScript

Unable to write to the log file.

-8

InstallScript

Invalid path to the InstallShield Silent response (.iss) file.

-9

InstallScript

Not a valid list type (string or number).

-10

InstallScript

Data type is invalid.

-11

InstallScript

Unknown error during setup.

-12

InstallScript

Dialog boxes are out of order.

-51

InstallScript

Cannot create the specified folder.

-52

InstallScript

Cannot access the specified file or folder.

-53

InstallScript

Invalid option selected.

The Setup.log file for a successful silent installation appears as follows:

[Application]

Name=Sample App 3000

Version=1.00.0000

Company=Sample Software Corporation

Lang=0409

 

[ResponseResult]

ResultCode=0