gpt4 book ai didi

visual-studio - 在 Visual Studio Team Services(之前是 VS Online)的构建服务上运行 WiX,错误 LGHT0217,ICE01-07

转载 作者:行者123 更新时间:2023-12-04 17:44:53 25 4
gpt4 key购买 nike

我有一个托管在 Team Services 中并使用其构建服务的解决方案。

该解决方案还包括一个使用 WiX 工具集构建 MSI 文件的项目。
这在本地工作得很好,我已将工具集二进制文件集成到存储库中,以便在构建服务器上也启用它,如 in this guide 所述.

但是构建过程报告项目构建失败:

light.exe (0, 0) Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and how to solve this problem. The following string format was not expected by the external UI message logger: "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.".



这从 ICE01 重复到 ICE07,然后是:

light.exe (0, 0) An unexpected Win32 exception with error code 0x643 occurred: Action - 'ICE09' Fatal error during installation



我也试过 supress the validations as mentioned in this SO question .这基本上是将以下内容添加到 wix 项目文件中:
<PropertyGroup>
<SuppressValidation>true</SuppressValidation>
</PropertyGroup>

这行得通 - 但如果这是最好的方法,我很高兴,因为它感觉不太对。在 Visual Studio Team Services 中运行 WiX 的正确方法是什么?

最佳答案

如果您想使用 VSTS Hosted Build Agent 构建 WiX 项目,现在可以抑制 ICE 验证,因为托管构建代理不提供管理员权限。

如果您对禁止验证感到不舒服,您可以始终使 PropertyGroup 以构建在构建代理上为条件,以便在桌面构建中正常进行验证:

<PropertyGroup Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">
<SuppressValidation>true</SuppressValidation>
</PropertyGroup>

另一种替代方式是 deploying your own build agent然后以管理员权限运行构建代理。

顺便说一句,WiX 工具集已安装在 VSTS Hosted Build Agent 上,因此您无需再按照该指南检查 WiX 工具集。引用 this list对于已安装的软件。

关于visual-studio - 在 Visual Studio Team Services(之前是 VS Online)的构建服务上运行 WiX,错误 LGHT0217,ICE01-07,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38286360/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com