帮助!我继承了一个带有 WIX 安装程序项目的 .NET 项目。他们隐含地假设每台机器上都安装了 .NET Framework 4.5,这在很大程度上是正确的。现在我们正在添加一些需要 .NET Framework 4.7.2 的功能。我想修改安装集以检查是否存在 4.7.2(或更高版本)并在必要时通过 Web 安装。我发现一些文档部分回答了我的问题,但我仍然很困惑如何开始以及如何填写细节。是否有任何完整的演示或说明可用?我的理解是我需要添加一个“BootStrapper”项目。我' 如果我随后从我的主安装(我现有的安装)中添加/引用 BootStrapper 项目,或者如果我将主安装引用为 Bootstrapper 项目的一部分(通过 MsiPackage 元素),我会感到困惑。另外,如何设置检查 4.7.2?我找到的所有引用都是针对 4.5 或更早版本的,显然注册表中用于检查的位置已更改:
如何检测安装了哪些 .NET Framework 版本和服务包?
假设我在 Bootstrapper 中引用了我的主要安装,我该怎么做?
这些是我为感兴趣的人找到的链接。他们都暗示了答案,但没有给出完整的答案和/或已经过时了。
https://www.firegiant.com/wix/tutorial/net-and-net/bootstrapping/
最后,我相信我使用的是 WIX Toolset v3.11。这是文件夹指示的内容(C:\Program Files (x86)\WiX Toolset v3.11)
我提到这一点是因为一些参考资料是指 Wix 4.0(例如:http://wixtoolset.org/releases/" />)
谢谢!