How do I add a manifest (for UAC support) to a VB.NET application?

How do I add and insert a manifest file in VB.NET to add UAC support to my application?

+2
windows vb.net manifest uac


source to share


2 answers


In VB.NET 2010 go to Project -> My Project -> Application -> Browse Windows Settings.

You will see the default manifest. From here, you can change it however you want.

For example, in this case, to require the UAC to be raised when the application starts, change:



requestedExecutionLevel level="asInvoker" uiAccess="false"  

      

to

requestedExecutionLevel level="requireAdministrator" uiAccess="false"   

      

+6


source to share


You need to add a manifest specifying the privileges you need.

Select "Project-> Add New Item ..." and select "Application Manifest File".

A sample manifest file is generated with an entry <requestedExecutionLevel>

and an explanation of what to do with it.



This only works with Visual Studio 2008 (and possibly later).

To add a manifest in 2005, this blog post might help. It looks pretty complicated.

+1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics