wix:无法检测到服务包

发布于 2024-09-08 10:35:20 字数 646 浏览 1 评论 0原文

我正在尝试检测.net Framework 2.0 service pack 2。但wix似乎无法检测到它。 下面是我正在使用的脚本。

NAnt:
<exec program="${wix.dir}\light.exe" workingdir=".\wix" commandline="-ext WixUIExtension -ext WixNetFxExtension -cultures:en-us SampleFirst.wixobj -out ${release.dir}\NantTest.msi"/> 

wix:
<PropertyRef Id="NETFRAMEWORK20"/>
<Condition Message="This application requires .NET Framework 3.5 SP1. Please install the .NET Framework then run this installer again.">
    <![CDATA[Installed OR (NETFRAMEWORK20_SP_LEVEL and NOT NETFRAMEWORK20_SP_LEVEL = "#2")]]>
</Condition>

它能够检测 .net 框架。但它没有检测到服务包。有什么建议吗?

I am trying to detect .net framework 2.0 service pack 2. But it seems that wix is unable to detect that.
below is the script that i am using.

NAnt:
<exec program="${wix.dir}\light.exe" workingdir=".\wix" commandline="-ext WixUIExtension -ext WixNetFxExtension -cultures:en-us SampleFirst.wixobj -out ${release.dir}\NantTest.msi"/> 

wix:
<PropertyRef Id="NETFRAMEWORK20"/>
<Condition Message="This application requires .NET Framework 3.5 SP1. Please install the .NET Framework then run this installer again.">
    <![CDATA[Installed OR (NETFRAMEWORK20_SP_LEVEL and NOT NETFRAMEWORK20_SP_LEVEL = "#2")]]>
</Condition>

It is able to detect the ,net framework. But it is not detecting service packs. Any suggestion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

琴流音 2024-09-15 10:35:20

只需使用

<PropertyRef Id="NETFRAMEWORK20_SP_LEVEL"/>

而不是

<PropertyRef Id="NETFRAMEWORK20"/>

Just use

<PropertyRef Id="NETFRAMEWORK20_SP_LEVEL"/>

instead of

<PropertyRef Id="NETFRAMEWORK20"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文