IMsmMerge2::CreateSourceImage method (mergemod.h)

The CreateSourceImage method enables the client to extract the files from a module to a source image on disk after a merge, taking into account changes to the module that might have been made during module configuration. For more information, see the CreateSourceImage method of the Merge object.

Syntax

HRESULT CreateSourceImage(
  [in]  const BSTR   Path,
  [in]  VARIANT_BOOL fLongFileNames,
  [out] IMsmStrings  **pFilePaths
);

Parameters

[in] Path

The path of the root of the source image for the install.

[in] fLongFileNames

fLongFileNames determines whether or not long file names are used for both path segments and final file names.

[out] pFilePaths

A pointer to a memory location. This memory location receives a second pointer to a string enumerator containing a list of fully qualified paths for the files that were extracted. The list is empty if no files can be extracted. This argument may be null. No list is provided if pFilePaths is Null.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

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

See also

Merge Module Automation