从 WiX 3.0 切换到 3.5 是否会将 msi 大小从 100Mb 减少到 4Mb?

发布于 2024-09-16 11:10:36 字数 374 浏览 2 评论 0原文

将我的安装程序版本升级到 WiX 3.5 后,msi 大小从 100Mb 降至仅 4Mb!起初我以为有些文件被排除在 MSI 之外,所以我使用 -v(详细)和 -notidy(保留临时文件)选项运行 light.exe 3.0 和 3.5,检查了 cab 文件,实际上在 3.5 的情况下cab 文件大小为 3.8Mb,而 3.0 则为 98Mb。向驾驶室里面看去,所有的文件似乎都在。尝试提取两个驾驶室 - 输出看起来相同。最后,仍然不敢相信自己的眼睛,我安装了 4Mb MSI,它成功了!什么可以解释如此巨大的差异?我目前的理论——也许新的 WiX 使用新的 CAB 压缩逻辑来检测重复文件并创建引用,而不是多次添加文件? MSI 链接时间也显着下降...我的程序由 20 多个文件夹组成,所有文件夹中都有几乎相同的 DLL...

After upgrading my installer build to WiX 3.5 the msi size fell from 100Mb down to only 4Mb! At first I thought some files were excluded from MSI, so I ran light.exe 3.0 and 3.5 with -v (verbose) and -notidy (to keep the temp files) options, checked the cab files, and indeed in case of 3.5 the cab file was 3.8Mb while the 3.0 produced 98Mb. Looking inside the cab, all the files seem to be present. Tried extracting both cabs -- the output looks identical. Finally, still not believing my eyes I installed the 4Mb MSI and it worked! What can explain such a drastic difference? My current theory -- perhaps the new WiX uses new CAB compressin logic which detects duplicate files and creates references instead of adding the file multiple times? The MSI linking time dropped significantly as well... My program consists of 20+ folders with pretty much same DLLs duplicated in all of them...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

—━☆沉默づ 2024-09-23 11:10:36

Wix 3.5.0619.0 包含以下更改(来自 http://wix.sourceforge.net /releases/3.5.2519.0/history.txt):

智能出租车现在可以捕获所有内容
重复的文件,而不仅仅是来自
相同的源路径(基于文件
哈希值)。

我还观察到从 Wix 3.0 升级到 3.5 后安装程序大小也有类似的减少。上述更改可以解释这一点,因为我们的安装程序提供的文件中有一些重复,并且这些文件只能通过文件哈希而不是源路径来获取。

Wix 3.5.0619.0 included the following change (from http://wix.sourceforge.net/releases/3.5.2519.0/history.txt):

Smart cabbing now catches ALL
duplicate files, not just ones from
the same source path (based on file
hashes).

I have also observed a similar reduction in installer size after an upgrade from Wix 3.0 to 3.5. The above change would account for this, as there is some duplication in the files our installer is delivering, and these would only be picked up by file hashes not source paths.

你好,陌生人 2024-09-23 11:10:36

您的 3.0 中是否有不同的源路径,而 3.5 中是否有相同的源路径?

WiX 智能出租车

Did you have different source paths in your 3.0 and the same source path in your 3.5?

WiX Smart Cabbing

瑕疵 2024-09-23 11:10:36

您可以在某个地方分享 MSI(如果您愿意,请随时离线联系我,请参阅 http://robmensching.com) ?据我所知,WiX v3.5 中没有任何更改可能会导致这种巨大的变化...除非您的 .wxs 文件发生了更改...或者存在错误。 ;)

Can you share the MSIs somewhere (feel free to contact me offline if you prefer, see http://robmensching.com)? There are no changes that I know of in WiX v3.5 that could cause that sort of drastic change... unless your .wxs files changed... or there is a bug. ;)

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