WIX reinstalling a feature increases the size of installer

淺唱寂寞╮ 提交于 2019-12-24 17:52:57

问题


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?

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


回答1:


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.

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:

Using the EstimatedSize value inside a program uninstall key to correctly display the program size in the Add/Remove Programs list



来源:https://stackoverflow.com/questions/10633770/wix-reinstalling-a-feature-increases-the-size-of-installer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!