Consolidate Method (mediaCabinet)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Consolidate Method (mediaCabinet)
Consolidates a package by combining and re-compressing all files into a single internal or external cabinet.
Declaration Syntax
C# Visual Basic Visual C++
public void Consolidate(
	string mediaCabinet
)
Public Sub Consolidate ( 
	mediaCabinet As String
)
public:
void Consolidate(
	String^ mediaCabinet
)
Parameters
mediaCabinet (String)
Remarks
If an installation package was built from many merge modules, this method can somewhat decrease package size, complexity, and installation time.

This method will also convert a package with all or mostly uncompressed files into a package where all files are compressed.

If the package contains any not-yet-applied binary file patches (for example, a package generated by a call to ApplyPatch(PatchPackage, String)) then this method will apply the patches before compressing the updated files.

This method edits the database summary information and the File, Media and Patch tables as necessary to maintain a valid installation package.

The cabinet compression level used during re-cabbing can be configured with the CompressionLevel property.

Assembly: Microsoft.Deployment.WindowsInstaller.Package (Module: Microsoft.Deployment.WindowsInstaller.Package.dll) Version: 3.0.0.0 (3.9.1006.0)