WiX ServiceControl 在卸载时停止服务,但在安装时不启动它
我需要该服务在卸载时停止并被删除,但我不希望它在安装时启动。问题是,ServiceControl
元素上的启动属性没有提供禁用启动的选项。或者我只是想念它?
我将其用于我的服务控制元素:
<ServiceControl Id="StartService"
Start="install"
Stop="both"
Remove="uninstall"
Name="Remec.AteService"
Wait="yes" />
I need the service to stop and be removed on its uninstall, but I don't want it to start on install. The problem is, the start attribute on the ServiceControl
element does not provide an option to disable starting. Or am I just missing it?
I'm using this for my service control element:
<ServiceControl Id="StartService"
Start="install"
Stop="both"
Remove="uninstall"
Name="Remec.AteService"
Wait="yes" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据文档,
start
属性是可选的,因此只需完全省略它即可。As per the documentation, the
start
attribute is optional, so simply omit it entirely.省略
Start
属性。Leave out the
Start
attribute.