How to install and start a Windows Service using WiX

后端 未结 4 1024
無奈伤痛
無奈伤痛 2020-12-04 10:29

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

4条回答
  •  失恋的感觉
    2020-12-04 10:54

    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.

提交回复
热议问题