Inno Setup: Installing Windows services using "sc create" -


i have 2 binaries , have create service them. tried solution using "sc create" how install windows service inno setup?

but did not work me. it's getting stuck @ end of installation. doing wrong?

here 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 pascal code in solution referred. keeping last resort.

i used code , both of services installing , uninstalling:

[run] filename: {sys}\sc.exe; parameters: "create mysrv start= auto binpath= ""{app}\mysrv.exe""" ; flags: runhidden  [uninstallrun] filename: {sys}\sc.exe; parameters: "stop mysrv" ; flags: runhidden filename: {sys}\sc.exe; parameters: "delete mysrv" ; flags: runhidden 

this solved problem, why should use pascal in case.?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -