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
Post a Comment