C# .NET - run desktop as administrator - Asked By mostafa hamdy on 25-Nov-10 04:46 AM

Hello all
I have some desk top application which I want to run it as a administrator, I set the requestedExecutionLevel level to requireAdministrator , but when I build the application I get the following error message
ClickOnce does not support the request execution level requireAdministrator, and I know I doesnt have way to set it on the mainfest to do that , but I want to know is there's any work arround way may help me in running my application as administrator , please if any body faces this problem so far and get it or can help me in solving it please send me or tell me about some url may help me in doing that
regards
Mostafa
Nowshad M replied to mostafa hamdy on 25-Nov-10 04:55 AM
Hi,
Which OS you r using????. If you are using windows 7 or 2008 server then right click the application and select Run As Administrator
mostafa hamdy replied to Nowshad M on 25-Nov-10 05:32 AM
Hello Nowshad
thanx about ur reply, but what I want to do is running my application as administrator from its own setting in application or by writting code in the application itself enables the exe file of the application to run directly with out need to right click some menu item or what ever else , please if any body get what I mean and can help me please send me or tell me about some url may help me in doing that
regards
Mostafa