How to run my application as an administrator automatically in vista?

May 19 2009 8:19 AM
Hi...

My application is for repairing the bad registry.so i have write code to change those values.

But when i am trying to run my application in vista at that time vista throws UnAuthorizedException...it shows that access is denied..

So i have to run my application as an administrator.

But i want that automatically my application start as an administrator then what should i do?

Is there any way available to do this????

Please help me....i am waiting...


Thanks in advance....