如何为我的VB.NET应用程序添加清单(用于UAC支持)? [英] How can I add a manifest (for UAC support) to my VB.NET application?

查看:91
本文介绍了如何为我的VB.NET应用程序添加清单(用于UAC支持)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在VB.NET中添加和嵌入清单文件,以向应用程序添加UAC支持?

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

推荐答案

在VB.NET 2010中,转到Project→.我的专案申请→查看Windows设置.

In VB.NET 2010, go to Project → My Project → Application→ View Windows Settings.

您将看到默认清单.在这里,您可以根据需要进行更改.

You'll see the default manifest. From here, you can change it as you desire.

例如,在这种情况下,要在应用程序启动时要求UAC升高,请更改:

For example, in this case, to require UAC elevation when the application launches, change:

requestedExecutionLevel level="asInvoker" uiAccess="false"  

requestedExecutionLevel level="requireAdministrator" uiAccess="false"   

这篇关于如何为我的VB.NET应用程序添加清单(用于UAC支持)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆