我已经使用 wix BA 编写了一个自定义 bootstrap 应用程序。
该应用程序包含 2 个包,这些包中的每一个都包含 2 个功能。
我已阅读链接 https://www.wrightfully.com/part-4-of-writing-your-own-net-based-installer-with-wix-handling-current-and-future-state/并了解事件 DetectMsiFeature 用于检测从给定包安装的功能。
但是,不会调用 DetectMSIPackage 方法本身。
我们如何调用 Wix BootStrapper 的 DetectMsiFeature 方法?
最佳答案
请检查您是否执行了以下 3 个步骤,您应该可以执行 DetectMSIPackage
方法。
1:您已经连接了偶数处理程序,即 this.model.BootstrapperApplication.DetectMsiFeature += BootstrapperApplication_DetectMsiFeature;
2:您调用了引擎this.model.BootstrapperApplication.Engine.Detect();
的Detect方法
3:您已设置 EnableFeatureSelection="yes"
Bundle.wxs 的 MSIPackage 节点中的属性
关于.net - 未调用 Wix Bootstrapper Detect Feature 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37267810/