【发布时间】:2010-07-09 07:15:27
【问题描述】:
我正在尝试检测 .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 框架。但它没有检测到服务包。有什么建议吗?
【问题讨论】:
-
它能够检测到。我提到了错误的财产。 :)
-
我觉得这个问题一点都不清楚。