I tried to use the codes below in Wix.
But when installing, the installer was freezing for like 3 minutes on status: Starting services, then I got this message \"Ser
I found the solution on this page would install the service correctly but that the ServiceControl element would not start the service.
Comparing the wix installed service with manual installed service ("JobService.exe /install"), the "Path to executable" field was missing a start switch. Fixed this in wix with the arguments attribute of ServiceInstall;
A long time lurker, this is my first post on here - I hope it helps someone.