Wix:安装过程中无法启动该服务
我在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢@Stephen Connolly、@Alexey Ivanov、@Cosmin Pirvu 的评论。
我想添加您上面的评论作为答案。
Thank you @Stephen Connolly, @Alexey Ivanov, @Cosmin Pirvu for your comments.
I'd like to add your comments above as the answer.