Install service with delphi? -


i want small executable install service usual

path\servicename /install 

i've tried running simple shellexecute in program elevated rights,

shellexecute(0, nil, 'cmd.exe','/c servicepath\servicename.exe /install', nil, sw_hide); 

but service doesn't install. not wiz shellex suspect have gotten wrong; kindly show me errors of ways , possibly supply correct shellexecute line

the proper way install service code call service control manager (scm) api. /install parameter supplied delphi service "standard" call scm not best 1 services. today, few services, example, should run localsystem privileges because it's powerful.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -