【问题标题】:wix: unable to detect servicepackswix:无法检测到服务包
【发布时间】: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 框架。但它没有检测到服务包。有什么建议吗?

【问题讨论】:

  • 它能够检测到。我提到了错误的财产。 :)
  • 我觉得这个问题一点都不清楚。

标签: wix nant


【解决方案1】:

随便用

<PropertyRef Id="NETFRAMEWORK20_SP_LEVEL"/>

而不是

<PropertyRef Id="NETFRAMEWORK20"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-01-16
    • 2019-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-13
    • 1970-01-01
    相关资源
    最近更新 更多