tags:

views:

545

answers:

2

Hi,

How can I add and embed manifest file in VB.net, in order to add UAC support to my application.

A: 

Check this MSDN article. Create and Embed an Application Manifest (UAC)

Shoban
+1  A: 

You have to add a manifest specifying the privileges you require.

Choose Project->Add New Item..., and select Application Manifest File.

A sample manifest file will be created containing a <requestedExecutionLevel> entry and an explanation what to do with it.

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

To add the manifest to 2005, this blog entry might help. It looks rather complicated.

Timbo
thanks, how can I embed it within the exe file? is there a command line for post build?
>>Choose Project->Add New Item..., and select Application Manifest File.This is not existed in VB.net VS 2005