在WiX中,启用.NET 3.5的正确方法是什么? [英] In WiX, what's the correct way to enable .NET 3.5?
问题描述
我正在为Windows桌面应用程序创建安装程序,该安装程序依赖于需要.NET 3.5的另一产品
I'm creating an installer for a Windows desktop app, which has a dependency on another product that requires .NET 3.5
在Windows 10上安装该安装程序时,。 NET 3.5包含在内,必须在添加/删除Windows功能中启用。我认为在Windows 10上安装.NET 3.5的可下载版本是无效的(如果我错了,请纠正我!)。
When installing this on Windows 10, .NET 3.5 is included and has to be enabled in Add/Remove Windows Features. I don't think it is valid to install a downloadable version of .NET 3.5 on Windows 10 (correct me if I'm wrong!).
因此,一种使WiX启用.NET 3.5功能而不是下载并安装它的方法?
So, is there a way to get WiX to enable the .NET 3.5 "feature" rather than downloading and installing it?
推荐答案
WiX样本 :一般而言,一些可能有用的链接:
WiX Samples: Some potentially helpful links in general:
- < a href = https://stackoverflow.com/questions/25004226/msi-vs-nuget-packages-which-are-is-better-for-continuous-delivery/25005864#25005864> WiX快速入门建议(带有示例链接)。
- https://helgeklein.com/blog/2014/09/real-world-example-wix-msi-application-installer/
- WiX Quick Start Suggestions (with sample links).
- https://helgeklein.com/blog/2014/09/real-world-example-wix-msi-application-installer/
替代工具 :也许要记住,商业工具具有功能易于使用的产品,可以使您的产品快速投放市场。 WiX很棒。
Alternative Tools: Maybe keep in mind that commercial tools have features that are easier to use to get your product out there quickly. WiX is great though.
- MSI工具(比较不同的MSI工具)
- 在WiX上,设置GUI和商业工具
- MSI Tools (comparing different MSI tools)
- On WiX, setup GUI and Commercial tools
先决条件 :如果出现,我建议您在程序包中添加LaunchCondition来中止安装。 NET框架不存在。您可以将.NET框架与您的应用程序捆绑在一起,但我实际上不建议这样做:软件包中过时的先决条件。
LaunchCondition :LaunchConditions概念在允许安装继续进行之前会检查特定条件是否成立:
LaunchCondition: The concept of LaunchConditions checks for a certain condition to be true before installation is allowed to continue:
- 在安装Windows Installer软件包之前检查先决条件是否已安装 (请至少检查此链接-如果您不这样做, t检查其他链接)
- 有关LaunchConditions的更早答案。
- Check if prerequisites are installed before installing a windows installer package (please check this link at the very least - if you don't check other links)
- An earlier answer on LaunchConditions.
快速,在线示例 :
Quick, inline sample:
<Condition Message="The .NET Framework 2.0 must be installed">
Installed OR NETFRAMEWORK20
</Condition>
WiX和.NET框架 :一些用于检测.NET框架的内置措施。
WiX and .NET Framework: Some built-in measures to detect the .NET framwork.
- > 如何:检查.NET Framework版本 (官方WiX文档)
- 如何使用Wix 3.11检查.net Framework 4.7.1
- 如何检测.NET Framework 4.6.1或在WiX中安装了更高的版本?
- How To: Check for .NET Framework Versions (official WiX documentation)
- How to check for .net framework 4.7.1 with Wix 3.11
- How can I detect whether .NET Framework 4.6.1 or higher is installed in WiX?
链接 :
Link:
- Wix IIS Version check launch condition not working
- LaunchConditions and missing runtimes
这篇关于在WiX中,启用.NET 3.5的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!