How to force my C# Winforms program run as administrator on any computer ? and any kind of OS ?
I need code solution (any sample code will be excell
It needs the Manifest file. Just place a manifest file and choose AsInvoker or AsAdministrator.
If you can access process you might use proc.Verb = "runas";
Check this : http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/db6647a3-85ca-4dc4-b661-fbbd36bd561f