IMsmMerge::Connect Method

Windows Installer

IMsmMerge::Connect Method

The Connect method connects a module that has been, or will be, merged into the database to an additional feature. For more information, see the Connect method of the Merge object.

IMsmMerge2::Connect    Mergemod.dll version 2.0 or later.
IMsmMerge::Connect      All Mergemod.dll versions.

Syntax

C++HRESULT Connect(
  [in]  BSTR Feature
);

Parameters

Feature [in]

The name of a feature in the database. A LPCWSTR may be used in place of a BSTR.

Return Value

The method can return one of the following values.

Value Meaning
E_INVALIDARG

One of the arguments is invalid.

E_FAIL

The connect failed.

S_OK

The function succeeded.

 

Remarks

The feature must exist before this function is called. Errors may be retrieved using get_Errors. Errors and informational messages are posted to the current log file.

Changes made to the database are not be saved to disk unless CloseDatabase function is called with bCommit set to TRUE.

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.