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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -