我的 wxs 文件中的片段:
<ServiceInstall Id="ServiceInstall" Type="ownProcess" Vital="yes"
Name="service name"
DisplayName="service display name"
Description="service description"
Start="auto" Account="[SERVICEUSERNAME]" Password="[SERVICEPASSWORD]"
ErrorControl="normal" Interactive="no" />
<ServiceControl Id="StartService"
Start="install" Stop="uninstall" Remove="uninstall"
Name="service name" Wait="yes">
<ServiceArgument>arguments for first run</ServiceArgument>
</ServiceControl>
如果服务启动失败,安装程序会在失败前等待几分钟,而它应该能够检测到它处于停止状态,并且从那时起,如果没有手动干预,就永远无法达到启动状态。然而,它一直在等待。有没有什么办法解决这一问题?