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
C++HRESULT OpenLog(
[in] BSTR FileName
);
Parameters
- FileName [in]
-
Fully qualified file name pointing to a file to open or create. A LPCWSTR may be used in place of a BSTR.
Return Value
The method can return one of the following 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
Version | Mergemod.dll 1.0 or later |
---|---|
Header | Mergemod.h |
DLL | Mergemod.dll |
IID | IID_IMsmMerge is defined as 0ADDA82E-2C26-11D2-AD65-00A0C9AF11A6 |
See Also
Send comments about this topic to Microsoft
Build date: 8/13/2009
© 2009 Microsoft Corporation. All rights reserved.