WIX 重新安装功能会增加安装程序的大小 [英] WIX reinstalling a feature increases the size of installer

查看:24
本文介绍了WIX 重新安装功能会增加安装程序的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的设置中有几个功能.我还启用了更改选项.即用户可以在初始安装后更改他/她想要安装或卸载的内容.

I have a couple of features in my setup. I have also enabled the Change option. i.e. A user can change what s/he want's to install or uninstall after the initial install.

当使用此更改选项删除功能时,它会被卸载.我原以为安装程序的大小会减少,但它保持不变.现在,当稍后使用更改选项添加该功能时,安装程​​序的整体大小会增加.

When a feature is removed using this Change option it gets uninstalled. I would have expected the size of installer to be reduced but it stays the same. Now when the feature is later added using Change option the overall size of ths installer is increased.

有没有办法控制这个或者它总是这样工作?

Is there a way to control this or does it always work like this?

注意:安装程序的大小是指它占用的大小或空间(以字节/KB/MB 为单位),显示在添加/删除程序中.

Note: By size of installer I mean the size, or space in bytes/KBs/MBs it occupies, which is shown in Add/Remove Programs.

推荐答案

您在 添加/删除程序 中所指的大小由 MSI 引擎在 文件成本计算 并由 EstimatedSize 注册表项.

The size you are referring to in the Add/Remove Programs is calculated automatically by the MSI engine during the File Costing and is defined by the EstimatedSize registry key.

对于大多数设置作者和用户来说,广告尺寸的正确性通常不是问题,所以我不建议在这方面付出任何努力.但是,如果您必须解决此问题,请查看此 SO 帖子:

Usually the correctness of the advertised size is a non-issue for most setup authors and users, so I wouldn't advise putting any effort on this. However if you must fix this, check this SO post:

使用程序卸载键中的 EstimatedSize 值在添加/删除程序列表中正确显示程序大小

这篇关于WIX 重新安装功能会增加安装程序的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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