在WiX中,启用.NET 3.5的正确方法是什么? [英] In WiX, what's the correct way to enable .NET 3.5?

查看:414
本文介绍了在WiX中,启用.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:

  • 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 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:

  • 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.

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆