【问题标题】:Team Services can not build wix installerTeam Services 无法构建 wix 安装程序
【发布时间】:2017-04-28 22:25:19
【问题描述】:

我选择了团队服务(Visual Studio Online)作为我团队的新存储库,我们正在开发 c# 项目。我们正在使用 WiX 安装程序,

团队服务 msbuild 可以构建我们的解决方案项目,除了 wix,

我已经按照 wix 指令进行了这里提到的日常构建指令http://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html

我已将所有需要的文件添加到一个文件夹中,并推送到存储库中 .wixproj 的上下文如下

<Project>
...

  <PropertyGroup>
    <WixToolPath>$(SolutionDir)Tools\wix\3\bin\</WixToolPath>
    <WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath>
    <WixTasksPath>$(WixToolPath)wixtasks.dll</WixTasksPath>
  </PropertyGroup>
  <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
  <!--<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />-->
  <Target Name="EnsureWixToolsetInstalled" Condition="$(WixTargetsImported)' != 'true' ">
    <Error Text="The WiX Toolset v3 build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
  </Target>
</Project>

但团队服务仍然抱怨如下

light.exe(0,0):错误 LGHT0217:执行 ICE 操作“ICE01”时出错。这种 ICE 故障的最常见原因是错误的 注册脚本引擎。看 http://wixtoolset.org/documentation/error217/ 了解详情以及如何操作 解决这个问题。以下字符串格式不是预期的 外部 UI 消息记录器:“Windows 安装程序服务可以 不被访问。如果 Windows Installer 未安装,则可能发生这种情况 正确安装。请联系您的支持人员以获取 帮助。”。

我该如何克服这个问题?

【问题讨论】:

  • 您使用的是托管构建代理吗?

标签: msbuild wix azure-devops wix3


【解决方案1】:

最后我可以通过 wix 安装程序的属性禁用验证来解决它,

更多可以在这里找到 WiX ICE validation errors

【讨论】:

    猜你喜欢
    • 2017-06-29
    • 2020-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多