未调用 Wix Bootstraper DetectMsiFeature 方法
Wix Bootstraper DetectMsiFeature method is not called
我已经使用 wix BA 编写了自定义引导程序应用程序。
该应用程序包含 2 个包,每个包都包含 2 个功能。
我已阅读 link 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:你调用了引擎的Detect方法this.model.BootstrapperApplication.Engine.Detect();
3:您已在 Bundle.wxs
的 MSIPackage 节点中设置 EnableFeatureSelection="yes"
属性
我已经使用 wix BA 编写了自定义引导程序应用程序。
该应用程序包含 2 个包,每个包都包含 2 个功能。
我已阅读 link 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:你调用了引擎的Detect方法this.model.BootstrapperApplication.Engine.Detect();
3:您已在 Bundle.wxs
的 MSIPackage 节点中设置EnableFeatureSelection="yes"
属性