requireAdministrator在启动时阻止Exe启动 [英] requireAdministrator blocking the Exe launching at startup

查看:190
本文介绍了requireAdministrator在启动时阻止Exe启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用清单文件并使用下面的管理员权限



Hi,My application using manifest file and using admin privilege like below

<requestedexecutionlevel level="requireAdministrator" uiaccess="false" />





此特权阻止我的应用程序在启动时启动。管理员权限是必需的,我需要在启动时启动应用程序。当我删除此权限时,启动启动正在运行。< br $>




问候



jayesh



This privilege blocking my application launching on start up.The admin privilege is necessarily required and i need to launch the application in start up.When i remove this privilege the starting launch is working.


Regards

jayesh

推荐答案

请看我对你的帖子的评论:这不是一个问题,也不是很清楚。但是,这可能是您需要的提示:没有办法解决UAC问题。如果有可能,谁会需要它?因此,没有办法创建任何工件(如程序)来绕过请求用户提升权限的UAC对话框。当您嵌入请求提升权限的应用程序清单时,它只是意味着应立即显示UAC请求对话框,因此用户不需要使用以管理员身份运行菜单项;在所有情况下都会显示请求对话框。请参阅:

http://msdn.microsoft.com/en-us /library/bb756929.aspx [ ^ ]。



我不知道你如何自动运行应用程序,但是当没有用户可以获得该应用程序时,有阶段请求。



另请参阅: http://en.wikipedia.org / wiki / User_Account_Control [ ^ ]。



也许,想要做什么,你需要解释你的最终目标,解释你想要达到什么样的安全性。一般而言,你的整个想法可能是错误的。



-SA
Please see my comment to your post: it is not a question and not quite clear. However, probably this is the hint you need: there is no a way to work around UAC. If it was possible, who would need it? So, there is no a way to create any artifact such as a program, to bypass the UAC dialog requesting the user to elevate privileges. When you embed the application manifest requesting elevation of the privileges, it simply means that the UAC request dialog should be shown immediately, so the user would not need to use "Run As Administrator" menu item; the request dialog will be shown in all cases. Please see:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^].

I don't know how you "auto-run" the application, but there are phases when there is no a user who would get that request.

See also: http://en.wikipedia.org/wiki/User_Account_Control[^].

Perhaps, to figure what to do, you need to explain your ultimate goal, explain what kind of security do you want to achieve. It could be possible that your whole idea is wrong, in general terms.

—SA


使用任务计划程序启动程序:

http://www.techrepublic.com/blog/windows-and-office/make-vista-launch-uac-restricted-programs-at-startup-with -task-scheduler / [ ^ ]
Use the Task Scheduler to launch the program:
http://www.techrepublic.com/blog/windows-and-office/make-vista-launch-uac-restricted-programs-at-startup-with-task-scheduler/[^]


这篇关于requireAdministrator在启动时阻止Exe启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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