What is the compression method used by MSI files?
Asked Answered
N

2

4

I can extract a MSI file, but when I try to regenerate it from the extracted files the resulting file doesn't work.

I guess that if I changed the compression method from Deflate to another one, it would work.

Nonetheless answered 17/11, 2010 at 19:14 Comment(0)
H
8

First of all: there is a script in the Windows Installer SDK called WiMakCab.vbs which is used to create *.cab files for use in MSI files. One of the lines in that script is: Dim compressType : compressType = "MSZIP"). You should probably try that script when creating the cabs.

Below is an annotated quote from http://www.gdgsoft.com/ (WayBack) (16.06.2014: removed direct broken link, leaving the base url. And 21.03.2023 adding link to wayback-archived version):

"Microsoft Cabinet supports three lossless compression techniques: (1) storing , (2) MSZip, and (3) LZX. Within a cabinet archive file, any combination of these techniques may be used. MSZip is essentially the same as the deflation compression method used by PKZip. LZX is an LZ77-based compression technique that uses static Huffman encoding. LZX uses more memory, but can produce better compression ratios than MSZip. Stored, of course, means the file is stored into the cabinet uncompressed."

MSDN info: Microsoft Cabinet SDK and Microsoft Cabinet Format.


Some Links:

Headward answered 11/6, 2011 at 2:57 Comment(0)
T
0

Not sure the compression method, but check this out: http://support.microsoft.com/kb/255905

Turnbuckle answered 17/11, 2010 at 19:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.