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.
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 |
---|---|
|
There is already a log file open. |
|
The file could not be opened or created. |
|
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 |