WIX 是否支持检测框架 4.6? [英] Does WIX support detection of framework 4.6 yet?

查看:32
本文介绍了WIX 是否支持检测框架 4.6?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 WIX 3.10 版...

I have WIX version 3.10...

我正在更新安装程序以要求 .NET 4.6.它以前需要 4.5.1.我正在使用 WIX NetFxExtension 来检测框架是否存在.对于框架 4.5,我在 XML 中有这个:

I am updating an installer to require .NET 4.6. It previously required 4.5.1. I am using the WIX NetFxExtension to detect the presence or otherwise of the framework. For framework 4.5, I had this in the XML:

<PropertyRef Id="NETFRAMEWORK45" />
<Condition Message="This application requires .NET Framework 4.5.1. Please install the .NET Framework then run this installer again.">
  <![CDATA[Installed OR (NETFRAMEWORK45 AND (NETFRAMEWORK45 >= "#378675"))]]>
</Condition>

如果我将45"更改为46"(并将比较值设置为适合 4.6 的值),WIX 将无法识别该属性.

If I change the '45' to '46' (and set the comparison value to something appropriate for 4.6), WIX does not recognize the property.

WIX NetFxExtension 是否支持检测 .NET framework v4.6?如果是这样,我做错了什么?如果没有,我还能做些什么来检测它?

Does the WIX NetFxExtension support detection of .NET framework v4.6? If so, what am I doing wrong? If not, what else can I do to detect it?

推荐答案

您应该使用不同的属性 - WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED.根据文档,它是:

You should use a different property - WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED. According to the docs, it is:

如果安装了 .NET Framework 4.6 或更高版本,则设置为 1.

Set to 1 if .NET Framework 4.6 or later is installed.

此属性从 v3.10 开始可用.有关详细信息,请参阅这篇文章.

This property is available starting from v3.10. See this article for details.

这篇关于WIX 是否支持检测框架 4.6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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