WiX 3.0 在通过持续集成执行时​​抛出错误 217 [英] WiX 3.0 throws error 217, while being executed by continuous integration

查看:20
本文介绍了WiX 3.0 在通过持续集成执行时​​抛出错误 217的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我们的自动构建套件在 Windows 2008 上运行时抛出的错误 ICEs(从 WiX 2.0 到 WiX 3.0):

This is the error that is thrown by our automated build suite on Windows 2008, while running ICEs (after migrating from WiX 2.0 to WiX 3.0):

LGHT0217:执行 ICE 操作ICE01"时出错.这种 ICE 故障的最常见原因是错误注册的脚本引擎.有关详细信息,请参阅 http://wix.sourceforge.net/faq.html#Error217如何解决这个问题呢.外部 UI 消息记录器不希望出现以下字符串格式:无法访问 Windows Installer 服务.如果未正确安装 Windows Installer,可能会发生这种情况.请联系您的支持人员寻求帮助.".在 light.exe(0, 0) 中

LGHT0217: Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See http://wix.sourceforge.net/faq.html#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.". in light.exe(0, 0)

此外,这些是显示在事件日志中的错误:

Additionally, these are the errors that show up in the event log:

MSIInstaller:无法连接到服务器.错误:0x80070005产品:[ProductName] -- 错误 1719.无法访问 Windows Installer 服务.如果未正确安装 Windows Installer,则可能会发生这种情况.请联系您的支持人员寻求帮助.

MSIInstaller: Failed to connect to server. Error: 0x80070005 Product: [ProductName] -- Error 1719. 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.

直观地说:

  • VBScriptJScript 在 admin 下注册.
  • 集成服务拥有桌面交互和所有文件的权限
  • 构建成功,当由另一个用户在同一台​​机器上手动执行时,甚至是作为集成帐户登录的用户(通过 RDP)
  • VBScript and JScript were registered under admin.
  • Integration service has permissions for the desktop interaction and all the files
  • Builds succeed, when executed manually on the same machine by another user or even user logged in as integration account (via RDP)

到目前为止,我没有任何想法.

I'm out of ideas so far.

如何在保持 ICE 验证的同时解决此问题?

推荐答案

故事结束:

摆弄集成账号的权限后,DCOM、服务激活等没有幸运的是,我终于在持续集成构建中简单地禁用了 ICE 验证,同时仍将其保留在本地构建中.

After fiddling with the permissions of the integration account, DCOM, service activation, etc. without any luck, I finally simply disabled ICE validation in the continuous integration build, while still keeping it in the local build.

要禁用 ICE 验证,您可以在 .wixproj 文件中将 SuppressValidation 设置为 true:

To disable ICE validation you can set SuppressValidation to true in the .wixproj file:

    <PropertyGroup>
        <SuppressValidation>true</SuppressValidation>
    </PropertyGroup>

或者将-sval命令行选项传递给light.exe.

Or pass the -sval command line option to light.exe.

这篇关于WiX 3.0 在通过持续集成执行时​​抛出错误 217的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆