Monday, October 18, 2010

How to provide application "Admin privilege" in Vista and Windows 7 By C# (Visual Studio)

For giving Administrative privilege we have to make our application UAC compliant,
so that it will ask user to grant your application Administrator access.

To make our application UAC compliant,
Double Click My Project in Solution Explorer and Click UAC Settings button as shown in image.











Then Modify app.manifest file as shown below. Make it 'requireAdministrator' instead of 'asInvoker' and save.
Hoping this post will help you...


5 comments:

  1. Hi this is very use full Post for me I appreciate your valueable post

    Thank you..

    ReplyDelete
  2. Thanks buddy, I appreciate your job to helping us,
    thanks again for this post.

    ReplyDelete
  3. Awesome post buddy....
    Please help me on WPF DataGrid, dataaccess

    Thanks in advance...

    ReplyDelete
  4. hi anand. thank for your post. this is very hlep ful in my windows application

    ReplyDelete
  5. Hi,this is very very good blog,keep posting.......................

    ReplyDelete