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

Jon*_*onn 22 service install windows-installer wix uninstall

我需要停止服务并在卸载时将其删除,但我不希望它在安装时启动.问题是,ServiceControl元素的start属性不提供禁用启动的选项.还是我错过了?

我正在使用它作为我的服务控制元素:

<ServiceControl Id="StartService"
    Start="install"
    Stop="both"
    Remove="uninstall"
    Name="Remec.AteService"
    Wait="yes" />
Run Code Online (Sandbox Code Playgroud)

sas*_*ont 44

根据文档,该start属性是可选的,因此只需完全省略它.

 <ServiceControl Id="StartService"
    Stop="both"
    Remove="uninstall"
    Name="Remec.AteService"
    Wait="yes" />
Run Code Online (Sandbox Code Playgroud)

  • 如果这是文档,那就太好了-我也想念它。显然能够指定要在卸载时启动该服务,这也让我有些困惑。 (2认同)

Bri*_*ker 5

省略Start属性.