Search code examples
c#windowsuacelevation

How to install a program so it can be launched at startup with admin rights on Windows Vista/7


I read how to do it with a service, but i wanna know if it's possible with a simple application. I'm using c#.

Thank you


Solution

  • It's not possible. The closest experience you could have would be to create a service to run elevated and a winforms app that runs without elevation and is just a front end to the service. You have to be careful though, you could cause security concerns if you don't wall if off correctly.