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

For giving Administrative privilege to our windows application,  we have to make our application UAC compliant. By making UAC compliant application will ask user to grant your application Administrator access while opening.


For making our application UAC compliant :
Double Click My Project in Solution Explorer and Click UAC Settings button as shown in image.

 

capturefo

Then Modify app.manifest file as shown below.

Make it 'requireAdministrator' instead of  'asInvoker' and save.

requireAdministrator

Comments

Technology