阻止UAC提示出现在VB.net上 [英] Stop UAC prompt from appearing on VB.net

查看:62
本文介绍了阻止UAC提示出现在VB.net上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在开发需要管理权限的VB.net(2010)项目。我创建了一个清单文件,并将执行级别更改为requireAdministrator。然后我使用Inno Setup Compiler发布(setup / exe)项目。每当我尝试运行已安装的版本时,都会弹出一个UAC窗口,要求我单击是或输入管理员密码。如何在不完全禁用UAC的情况下阻止弹出窗口显示。我还注意到可执行文件(程序文件中)没有屏蔽符号表示它已被提升。即使我试图从我的项目文件中复制带有盾牌标志的那个,它仍会弹出UAC。

Hi guys i am working on VB.net (2010) project that requires administrative privileges. I have created a manifest file and changed the execution level to 'requireAdministrator'. I then published (setup/exe) the project using Inno Setup Compiler. Whenever i try to run the installed version, a UAC window pops up and requires me to click yes or enter the administrator password. How can i stop the pop up from appearing without disabling UAC completely. I also noticed that there is no shield sign on the executable (in program files) to indicate that it is elevated. Even when i try to copy the one with a shield sign from my project files, it still pops UAC.

推荐答案

你不能。这就是重点。如果你能做到这一点,那么UAC的整个想法就变得毫无用处 - 每个应用程序都可以在用户不知情的情况下快速切换到管理员,然后再切换回来。



无论是住在哪里它,或从您的应用程序中删除需要管理员访问的代码。
You can't. That is the whole point. If you could do that, then the whole idea of UAC becomes useless - every application could quickly switch to admin without the user knowing and then switch back.

Either live with it, or remove the code requiring admin access from your application.


这篇关于阻止UAC提示出现在VB.net上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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