Take the 2-minute tour ×  I need to be able to programatically
(from an installer program) install and run a windows service so
that it will have elevated admin rights (the installer app has
already elevated by this point), and also that it will restart
at system startup with elevated rights. Is this possible?
share|improve this question  1 Answer 1  up vote 1 down vote
accepted  You need to read up on OpenSCManager(),
CreateService() and similar functions. Here's some sample code
in C# that might get you started.  Cheers !  share|improve this
answer  Your Answer