1
我想安装Windows服务,目前服务正在系统上运行。现在我想停止服务安装,然后再次启动服务。Wix ServiceControl停止卸载服务安装它然后启动服务
ServiceInstall Id="GPATService" Type="ownProcess" Name="Axp.Gcpt.Gpat.Worker" DisplayName="Axp.Gcpt.Gpat.Worker"
Description="Axp.Gcpt.Gpat.Worker description" Start="auto" Account="LocalSystem" ErrorControl="normal" Interactive="no" Vital="yes" />
<ServiceControl Id="GPATServiceStart" Name="Axp.Gcpt.Gpat.Worker" Stop="both" Start="both" Wait="yes" />