LOGFILE Property

[This is preliminary documentation and subject to change.]

Enables logging of messages by specifying a path to the file where the log information is to be written. The file will be created if not present, else any old log information from a previous installation will be overwritten unless the append option is set by the LOGMODE property. The logfile is flushed after each line is posted, and it is closed when the MsiServices object is destroyed.

Set By

Set on the command line.

Used By

The installer uses this property to specify which log file will be opened when the installer is initialized. Initialization will fail if the log file cannot be opened.

Default Value

None.

Remarks

The first line of the log will be formatted according to the value of the imgLogHeader entry in the Error table. Log line formats are determined by the various message and action types, as well by code that directly writes directly to the log. The final line of the log will be formatted according to the value of the imsgLogTrailer entry in the Error table. For an example of using the LOGFILE property, see Command Line Options.