Wix安装无法在.net Framework检测时解析条件

时间:2018-09-27 11:37:47

标签: c# installation wix wix3.11

当我将Wix Web检测与复选框变量wix安装一起使用时,给出错误:无法解析位置'AND NetFrameWorkCheckbox = 1'的位置:1当我在installcondition上仅使用Web检测时,它可以工作,但不能与其他条件结合使用

    

<WixVariable Id="WixMbaPrereqPackageId" Value="NetFx47Web" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx47EulaLink)" Overridable="yes" />
<WixVariable Id="NetFx47WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx47MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx47WebInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx47WebPackageDirectory" Value="redist\" Overridable="yes" />


<!--/norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;-->


<PackageGroup Id="NetFx47Web">
  <ExePackage
      InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;"
      RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;"
      UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;"
      PerMachine="yes"
      DetectCondition="!(wix.NetFx47WebDetectCondition)"

      InstallCondition="!(wix.NetFx47WebInstallCondition) AND NetFrameWorkCheckbox = 1"
      Id="NetFx47Web"
      Vital="yes"

      Permanent="yes"
      SourceFile=".\prerequisites\NNDP47-KB3186497-x86-x64-AllOS-ENU.exe"
      Protocol="netfx4"
      DownloadUrl="$(var.NetFx47WebLink)"
      LogPathVariable="NetFx47FullLog"
      Compressed="yes"
      Name="!(wix.NetFx47WebPackageDirectory)NDP47-KB3186500-Web.exe">

这是我的引导者的输出。

[1710:1FE0][2018-09-27T14:20:08]i200: Plan begin, 3 packages, action: Install
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to parse condition ' AND NetFrameWorkCheckbox = 1' at position: 1
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to parse value.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to parse term.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to parse boolean-factor.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to parse boolean-term.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to parse expression.
[1710:1FE0][2018-09-27T14:20:08]e051: Error 0. Failed to parse condition  AND NetFrameWorkCheckbox = 1. Unexpected symbol at position (null)
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to evaluate install condition.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to set default package state.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to process package.
[1710:1FE0][2018-09-27T14:20:08]e000: Error 0x8007000d: Failed to plan packages.
[1710:1FE0][2018-09-27T14:20:08]i299: Plan complete, result: 0x8007000d

0 个答案:

没有答案