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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -