MSI 文件使用什么压缩方法?
我可以提取 MSI 文件,但当我尝试从提取的文件重新生成它时,生成的文件不起作用。
我想如果我将压缩方法从 Deflate
更改为另一种,它就会起作用。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先:Windows Installer SDK 中有一个名为 WiMakCab.vbs 的脚本,用于创建在 MSI 文件中使用的 *.cab 文件。该脚本中的一行是:
Dim compressType : compressType = "MSZIP"
)。您应该在创建出租车时尝试该脚本。以下是来自 http://www.gdgsoft.com/ (WayBack) (16.06 .2014:删除了直接损坏的链接,保留了基本 URL,并在 2023 年 3 月 21 日添加了 Wayback 存档版本的链接):
“Microsoft Cabinet 支持三种无损压缩技术:(1) 存储、(2) MSZip 和 (3) LZX 在压缩包存档文件中,这些技术的任意组合。 MSZip 本质上与 LZX 使用的压缩方法相同,它是一种基于 LZ77 的压缩技术,它使用静态 Huffman 编码,但当然可以产生比 MSZip 更好的压缩率。 ,表示文件未压缩地存储到压缩包中。"
MSDN 信息:Microsoft Cabinet SDK 和
Microsoft Cabinet 格式。
一些链接:
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:
不确定压缩方法,但请查看:http://support.microsoft.com/kb/255905< /a>
Not sure the compression method, but check this out: http://support.microsoft.com/kb/255905