I have one requirement to create a service using WiX. I tried with two approaches
1. Using Wix ServiceInstall
with the ServiceInstall I am able to create the service but could not able to start it. I tried with all possible ways and multiple Accounts but issue didn't resolved
2. Using custom action
Created one custom action whose work is to call Sc.Exe process to create and start the service.
I called this custom action in WiX installer. Custom action is getting called, sc.exe command is also getting executed, but service is not getting created.