How can I allow MSI features to be selected in a WiX burn bootstrapper?

狂风中的少年 提交于 2019-12-04 10:22:56

问题


I have just started playing around with Burn to try and chain multiple MSI files. I am using WiX v3.6.2705.0.

The chaining is working but I'm now trying to get optional features to work. I was hoping that it would just be a case of setting EnableFeatureSelection to "yes" for my MsiPackage tags but it doesn't make any difference whether it is turned on or off.

Is there anything else that needs to be done to get optional features working or is this a known issue?

Thanks, Alan


回答1:


If you want to display the features in a UI for the user to select then there are two options:

  1. Create a custom bootstrapper application using Burn to collect information from the user, and then pass that information to the msi when you launch it. Custom WiX Burn bootstrapper user interface? wix-burn-3-6-beta-custom-ui-examples

  2. If you have authored a UI into your MSI and you want Burn to display that UI in addition to the Burn UI, then in your MsiPackage, set DisplayInternalUI="yes".




回答2:


You ca use the MsiProperty element to populate the ADDLOCAL property with the features you want installed by default.

NOTE: MsiProperty ADDLOCAL - Removed in Wix 4, warning and ignored in Wix 3.11



来源:https://stackoverflow.com/questions/9669207/how-can-i-allow-msi-features-to-be-selected-in-a-wix-burn-bootstrapper

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