I have two binaries and have to create a service for them. I tried a solution using "sc create" from How to install a Windows service with Inno Setup?
But it did not work for me. It's getting stuck at the end of the installation. What am I doing wrong?
Here is my code:
Filename: {cmd}; Parameters: "sc create srvname start= auto DisplayName= mysrv binPath= {app}\mybinary.exe" ; Flags: runhidden
I tried using cmd
instead of {cmd}
- no change.
I did not try the Pascal code in the solution which I referred. I am keeping it as the last resort.