Snippet from my wxs file:
<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>
If the service fails to start, the installer waits for several minutes before failing, whereas it ought to be able to detect that it is in the stopped state, and from that point could never reach the started state without manual intervention. Yet, it keeps waiting. Is there any way to fix this?