requireAdministrator在启动时阻止Exe启动

编程入门 行业动态 更新时间:2024-10-28 20:24:19
本文介绍了requireAdministrator在启动时阻止Exe启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

此特权阻止我的应用程序在启动时启动。管理员权限是必需的,我需要在启动时启动应用程序。当我删除此权限时,启动启动正在运行。 问候 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请求对话框,因此用户不需要使用以管理员身份运行菜单项;在所有情况下都会显示请求对话框。请参阅: msdn.microsoft/en-us /library/bb756929.aspx [ ^ ]。 我不知道你如何自动运行应用程序,但是当没有用户可以获得该应用程序时,有阶段请求。 另请参阅: en.wikipedia / 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: msdn.microsoft/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: en.wikipedia/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

使用任务计划程序启动程序: www.techrepublic/blog/windows-and-office/make-vista-launch-uac-restricted-programs-at-startup-with -task-scheduler / [ ^ ] Use the Task Scheduler to launch the program: www.techrepublic/blog/windows-and-office/make-vista-launch-uac-restricted-programs-at-startup-with-task-scheduler/[^]

更多推荐

requireAdministrator在启动时阻止Exe启动

本文发布于:2023-10-22 09:08:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1517077.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:启动时   requireAdministrator   Exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!