WiX ServiceControl在卸载时停止服务,但不要在安装时启动它

我需要停止服务并在卸载时将其删除,但我不希望它在安装时启动。问题是,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" />

相关文章

文章浏览阅读2.2k次,点赞6次,收藏20次。在我们平时办公工作...
文章浏览阅读1k次。解决 Windows make command not found 和...
文章浏览阅读3.2k次,点赞2次,收藏6次。2、鼠标依次点击“计...
文章浏览阅读1.3w次。蓝光版属于高清版的一种。BD英文全名是...
文章浏览阅读974次,点赞7次,收藏8次。提供了更强大的功能,...
文章浏览阅读1.4w次,点赞5次,收藏22次。如果使用iterator的...