Since Vista and Windows 7 appeared, some of my .NET applications started throwing security exceptions.
I noticed that some applications (i.e. my anti-virus, control panel) have a small screen, and when I launch these applications, administrator rights are automatically requested from me by windows.
I know that as a user I can configure the application to run as an administrator, but this is not good enough, because if the application works without privileges, it will be divided into my users.
Is there a way to tell Windows (programmatically), I want the application to run as administrator?
source
share