MSI 文件使用什么压缩方法?

发布于 2024-10-02 14:55:17 字数 104 浏览 0 评论 0原文

我可以提取 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青衫负雪 2024-10-09 14:55:17

首先: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 的压缩技术,它使用静态 Huf​​fman 编码,但当然可以产生比 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:

递刀给你 2024-10-09 14:55:17

不确定压缩方法,但请查看:http://support.microsoft.com/kb/255905< /a>

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文