我需要停止服务并在卸载时将其删除,但是我不希望它在安装时启动。问题是,ServiceControl
元素上的start属性没有提供禁用启动的选项。还是我只是想念它?
我将此用于我的服务控制元素:
<ServiceControl Id="StartService"
Start="install"
Stop="both"
Remove="uninstall"
Name="Remec.AteService"
Wait="yes" />
最佳答案
根据the documentation,start
属性是可选的,因此只需将其完全忽略即可。
<ServiceControl Id="StartService"
Stop="both"
Remove="uninstall"
Name="Remec.AteService"
Wait="yes" />
关于service - WiX ServiceControl在卸载时停止服务,但不要在安装时启动它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4590089/