Wix:安装过程中无法启动该服务

发布于 2024-12-05 02:38:48 字数 715 浏览 2 评论 0原文

我在使用 Wix 服务时遇到问题,因为该服务在安装过程中无法启动。它引发错误:

Error 1053: The service did not respond to the start or control request in a timely fashion

我尝试过 [WIX_ACCOUNT_LOCALSYSTEM][WIX_ACCOUNT_LOCALSERVICE] 但它们都不起作用。

但这里很奇怪,因为我有一个使用 ClickOne 的安装程序,它包含与我在 Wix 中使用的服务组件相同的服务组件。 ClickOne安装服务很好(使用InstallUtil.exe),因此证明该帐户有权启动服务。

然后,我卸载了该软件(由ClickOne安装),并再次运行Wix安装程序,服务现在可以正常启动了。我不知道为什么?

我想更清楚地介绍一些流程:

1- 在新机器上

2- 运行 Wix 软件安装程序 -->服务无法启动并抛出错误消息 -->取消安装

3- 运行 ClickOne 软件安装程序 -->服务启动良好-->卸载软件

4-运行Wix软件安装程序 -->服务启动良好

另请注意,我在 2 台新机器上尝试了 2 次,但结果是一样的。任何人都可以阐明这种奇怪的行为吗?或者我应该验证什么?

提前致谢,

I'm having a problem with Wix Service as the service cannot be started during install progress. It throws the error:

Error 1053: The service did not respond to the start or control request in a timely fashion

I've tried with both [WIX_ACCOUNT_LOCALSYSTEM] and [WIX_ACCOUNT_LOCALSERVICE] but no one of them work.

But there is weird here as I have an installer which using ClickOne, it includes the same service component as the one I have been using in Wix. The ClickOne installs service just fine (using InstallUtil.exe), so it proves the account has right to start a service.

Then, I uninstall the software (installed by ClickOne), and running the Wix installer again, the service starts well now. I don't know the reason why?

I'd like to put some flows for more clearly:

1- On a fresh machine

2- Running Wix software installer --> the service cannot be started and throwing error message --> Cancel install

3- Running ClickOne software installer --> service starts well --> Uninstalling software

4- Running Wix software installer --> service starts well

Also note that, I've tried 2 times on 2 fresh machines but it's the same. Anyone can shed some light on this weird behavior? Or anything I should verify against?

Thanks in advance,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

靑春怀旧 2024-12-12 02:38:49

感谢@Stephen Connolly、@Alexey Ivanov、@Cosmin Pirvu 的评论。

我想添加您上面的评论作为答案。

  1. 使用 CheckAsm,这是一个验证程序集依赖关系的好工具。
  2. 在事件查看器中查看日志信息中的任何内容都可能会阻止服务启动(即超时、服务依赖性...)
  3. 验证服务操作所需的所有内容。安装完成后它们应该可用(即配置、注册表、工作文件夹...)
  4. 如果安装程序使用 Windows Installer 表将文件安装到 GAC,则当安装程序运行 StartServices 操作时,依赖项将不可用

Thank you @Stephen Connolly, @Alexey Ivanov, @Cosmin Pirvu for your comments.

I'd like to add your comments above as the answer.

  1. Using CheckAsm, a great tool to verify the assembly dependencies
  2. Looking at the log information in Event Viewer for anything could stop the service starting (i.e. timeout, services dependency ...)
  3. Verifying all stuffs would be needed for service operations. They should be available once installation completed (i.e. configuration, registry, working folder ...)
  4. If the installer is installing files to the GAC using the Windows Installer tables, the dependencies won't be available when the installer runs the StartServices action
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文