EnableLog Method

[This is preliminary documentation and subject to change.]

This is the EnableLog method of the MsiInstall object. This method enables logging of the selected message type for all subsequent install sessions in the current process space.

Syntax

object.EnableLog logMode, logFile

Parts

object
MsiInstall object.
logMode
Required string containing letters representing the message types to log.
logFile
Required string containing the path to the log file to be created.

Remarks

Log Message Types

i (imtInfo) Information-only messages
w (imtWarning) Warning messages; not fatal
e (imtError) Error messages; may be fatal
f (imtFilesInUse) List of files in use that need to be replaced
a (imtActionStart) Start of action notification
r (imtActionData) Action data record; contents action-specific
u (imtUser) User request messages
c (imtCommonData) UI initialization parameters
m (imtOutOfMemory) Out-of-memory message
p Dump property table; "property = value" at engine termination
+ Append if log file exists; overwrite if it exists