IMsmMerge::OpenLog Method

Windows Installer

IMsmMerge::OpenLog Method

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
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

VersionMergemod.dll 1.0 or later
HeaderMergemod.h
DLLMergemod.dll
IIDIID_IMsmMerge is defined as 0ADDA82E-2C26-11D2-AD65-00A0C9AF11A6

See Also

Merge Module Automation

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.