IMsmMerge::OpenLog method (mergemod.h)

The OpenLog method opens a log file that receives progress and error messages. If the log file already exists, the installer appends new messages. If the log file does not exist, the installer creates a log file. For more information, see the OpenLog method of the Merge object.

IMsmMerge2::OpenLog    Mergemod.dll version 2.0 or later.

 
IMsmMerge::OpenLog      All Mergemod.dll versions.

Syntax

HRESULT OpenLog(
  [in] const BSTR Path
);

Parameters

[in] Path

Fully qualified file name pointing to a file to open or create. A LPCWSTR may be used in place of a BSTR.

Return value

This method can return one of these values.

Value Meaning
ERROR_TOO_MANY_OPEN_FILES as HRESULT
There is already a log file open.
ERROR_OPEN_FAILED as HRESULT
The file could not be opened or created.
S_OK
The function succeeded.

Remarks

This function opens a log file to receive progress and error messages. If the log file already exists, new messages get appended to the log. If the log file does not exist it is created.

Clients may send their own messages to this log file using Log.

Requirements

Requirement Value
Minimum supported client Mergemod.dll 1.0 or later
Target Platform Windows
Header mergemod.h
DLL Mergemod.dll

See also

Merge Module Automation