MSI文件使用的压缩方法是什么? [英] What is the compression method used by MSI files?

查看:245
本文介绍了MSI文件使用的压缩方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以提取MSI文件,但是当我尝试从提取的文件中重新生成MSI文件时,结果文件不起作用.

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

我猜想,如果我将压缩方法从Deflate更改为另一种压缩方法,那么它将起作用.

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

推荐答案

首先:Windows Installer SDK中有一个名为 WiMakCab.vbs 的脚本,用于创建* .cab文件.用于MSI文件.该脚本中的行之一是:Dim compressType : compressType = "MSZIP").创建出租车时,您可能应该尝试使用该脚本.

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.

以下是来自 http://www.gdgsoft.com/(16.06.2014 :删除了直接断开的链接,并保留了基本网址):

Below is an annotated quote from http://www.gdgsoft.com/ (16.06.2014: removed direct broken link, leaving the base url):

" Microsoft Cabinet 支持三种无损压缩技术:(1)存储,(2) MSZip 和(3) LZX .在机柜归档文件中,可以使用这些技术的任意组合.MSZip本质上与PKZip使用的放气压缩方法相同.LZX是LZ77-基于压缩的技术,它使用静态霍夫曼编码.LZX使用更多的内存,但是比MSZip可以产生更好的压缩率.当然,存储意味着文件未压缩就存储在文件柜中."

"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信息: Microsoft Cabinet SDK Microsoft内阁格式.

MSDN info: Microsoft Cabinet SDK and Microsoft Cabinet Format.

某些链接 :

Some Links:

  • How can I compare the content of two (or more) MSI files?
  • What is the purpose of administrative installation initiated using msiexec /a?
  • http://wixtoolset.org/documentation/manual/v3/xsd/wix/media.html
  • Msi two times larger than msm

这篇关于MSI文件使用的压缩方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆