IMsmMerge::ExtractCAB method (mergemod.h)
The ExtractCAB method extracts the embedded .cab file from a module and saves it as the specified file. The installer creates this file if it does not already exist and overwrites the file if it does exist. For more information, see the ExtractCAB method of the Merge object.
IMsmMerge2::ExtractCAB Mergemod.dll version 2.0 or later.
Syntax
HRESULT ExtractCAB(
[in] const BSTR FileName
);
Parameters
[in] FileName
The fully qualified destination file. A LPCWSTR may be used in place of a BSTR.
Return value
This method can return one of these values.
Value | Meaning |
---|---|
|
One of the arguments is invalid. |
|
Could not create the output file. |
|
Could not write data to the output file. |
|
Unable to access embedded .cab file. |
|
No embedded .cab file was found. |
|
The function succeeded. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Mergemod.dll 1.0 or later |
Target Platform | Windows |
Header | mergemod.h |
DLL | Mergemod.dll |