1

Given following bundle:

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
     xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"
     xmlns:fire="http://wixtoolset.org/schemas/v4/wxs/firewall"
     xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
  <Bundle Name="!(bind.packageName.Setup)"
          Version="!(bind.packageVersion.Setup)"
          Manufacturer="!(bind.packageManufacturer.Setup)"
          UpgradeCode="$(var.UpgradeCode)">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
      <bal:WixStandardBootstrapperApplication LicenseUrl=""
                                              SuppressOptionsUI="no"
                                              ShowVersion="yes"
                                              SuppressRepair="yes" />
    </BootstrapperApplicationRef>
    <Chain>
      <MsiPackage Id="Setup"
                  Compressed="yes"
                  Name="$(var.ProductName)"
                  SourceFile="foo.exe"
                  DisplayInternalUI="yes"
                  Vital="yes" />
    </Chain>
  </Bundle>
</Wix>

With v3 I had no issues building the boostrapper, with the recent v4 release (4.0.2926.0) I am getting following error:

4>Bootstrapper\Bundle.wxs(14,0): error LGHT0298: Unresolved bind-time variable !(bind.packageVersion.Setup).
4>light.exe(0,0): error LGHT0001: Input string was not in a correct format.
4>Done building project "Bootstrapper.wixproj" -- FAILED.

4

1 回答 1

2

这可能是 WiX v4 中的一个错误。WiX v4.0 仍在积极开发中,并且是预测试版。请在http://wixtoolset.org/issues/提交一个错误,这样我们就不会丢失它。

于 2015-07-22T16:09:34.263 回答