【发布时间】:2015-09-17 14:58:16
【问题描述】:
如果我们运行软件更新,我们会收到以下消息。安装程序是使用 WiX 工具集构建的。
安装程序包含 Windows 服务。该服务在复制文件之前从设置中停止,但在此消息之后。最后不需要重新启动。为什么会出现此消息?我们如何防止这种情况发生?
这里是服务声明:
<Component Guid="xxx" Id="service">
<File Id="Service.exe" Name="Service.exe" Source="C:\xxx\prunsrv.exe"/>
<ServiceInstall Arguments=" foo" Description="xyz" DisplayName="foo Server" ErrorControl="normal" Id="service_install" Name="foo-server" Start="auto" Type="ownProcess"/>
<ServiceControl Id="service_start" Name="foo-server" Remove="uninstall" Start="install" Stop="both"/>
</Component>
【问题讨论】:
标签: wix windows-installer installation reboot