【发布时间】:2009-12-23 07:27:42
【问题描述】:
如何在 Win7 或 Vista 中使用 UAC 从 WIX 卸载时停止我的服务? 当我在 Win7 或 Vista 中使用 UAC 从控制面板卸载我的服务时,我总是收到“文件正在使用消息”。我怎样才能阻止它以使该消息不会出现? 我在 Wix 中有这段代码:
<ServiceInstall Id='MyServiceInstall' DisplayName='OnPremises Gateway' Name='OPGatewayService'
ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' Account='NT AUTHORITY\NetworkService' />
<ServiceControl Id="StartOPGatewayServiceControl" Name="OPGatewayService" Wait="no" Start="install" />
<ServiceControl Id="StopOPGatewayServiceControl" Name="OPGatewayService" Stop="both" Wait="yes" Remove="uninstall"/>
谢谢你, 阿德里安娜
【问题讨论】:
标签: wix windows-services installation wix3