Deployment Tools Foundation
Consolidate Method (mediaCabinet)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Package ► InstallPackage ► Consolidate(String)
Consolidates a package by combining and re-compressing all files into a single
internal or external cabinet.
Declaration Syntax
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.