How to run an executable as a system service?

Posted by byanity on Stack Overflow See other posts from Stack Overflow or by byanity
Published on 2010-03-20T13:32:22Z Indexed on 2010/03/20 13:41 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

I've got a file and data distribution application written in .NET 2.0 I've written similar to Steam.

This application will need to run in Windows 7 and will need to be able to run and install applications that require administrator rights. However the users will not have admin rights.

My thought was to run the application as a Local System Service. I figured by doing this the application could perform admin rights actions (registry edits, launching apps, etc) when the user isn't an admin.

Are my assumptions correct? What steps do I need to take to have this app install as a Local System Service?

An Administrator will be installing the application but it will be run by a user without Administrator rights.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about service

Related posts about system