在 wix 的注册表中检查 .net framework 4.5.2 [英] Check for .net framework 4.5.2 in registry in wix

查看:30
本文介绍了在 wix 的注册表中检查 .net framework 4.5.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 wix 在注册表中检查 .net framework 4.5.2.我试过了

How can I check for .net framework 4.5.2 in registry using wix. I've tried this

<Property Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED"/>
<Condition
  Message="This application requires .NET Framework 4.5.2. Please install the .NET Framework then run this installer again.">
  <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED]]>
</Condition

但它不起作用.我正在使用 wix v3.10

but it is not working. I am using wix v3.10

推荐答案

最后经过反复试验,我设法使用

Finally after trial and error I managed to solved the issue using

<Condition
  Message="This application requires .NET Framework 4.5.2. Please install the .NET Framework then run this installer again.">
  <![CDATA[Installed OR NETFRAMEWORK45>="#379893"]]>
</Condition>

条件返回一个 DWORD 前缀为 # 符号条件应该是

The condition returns a DWORD which will be prefixed with a # sign and the condition should be

<![CDATA[Installed OR NETFRAMEWORK45>="#379893"]]>

379893发布DWORD 的值.可从此 Microsoft 站点找到更多信息

EDIT:修正错别字.

这篇关于在 wix 的注册表中检查 .net framework 4.5.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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