带有我的应用程序图标的安全中心符号盾
我开发了一个需要管理员权限才能执行的应用程序。在 Windows 7 上运行应用程序,用户始终必须以“以管理员身份运行”启动应用程序,否则我的应用程序会提示用户“您没有管理权限等...”。这是可以理解的,因为 Windows 7 中存在 UAC。
要摆脱这种情况,用户必须将应用程序设置为“以管理员身份运行”。我更新了应用程序的“app.manifest”并设置
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Which 为我完成了这项工作。
但现在,安全中心符号盾牌与我的应用程序图标一起出现。 现在我的问题是“为什么这个图标出现在我的应用程序上,它表示什么?”
我尝试通过 Windows 将另一个应用程序标记为“始终以管理员身份运行”,但该应用程序不会出现相同的图标。
我想了解原因和场景。
I have developed an application that needs admin rights to execute. Running the application on Windows 7, the user always have to launch the application as "Run as Administrator" otherwise my application prompts the user that "you don't have administrative rights etc...". This is OK and understandable because of UAC in windows 7.
To get rid that the user have to set the application as "Run as Administrator". I updated my application's "app.manifest" and set
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Which done the job for me.
But now, a security center symbol shield appears with my application's icon.
Now my question is "Why does this icon appear on my application, and what does it indicate?"
I tried marking another of my applications to "Always Run as Administrator" via windows but the same icon wouldn't appear with that application.
I want to understand the reasons and scenarios.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该盾牌的作用是提醒用户,如果他们双击 exe 来运行它,他们将看到一个 UAC 对话框。这些对话永远不应该令人惊讶,如果你得到一个你没有预料到的对话,你真的不应该同意它。
如果您有请求提升的清单(requireAdministrator 或highestAvailable,但如果您的清单指定为asInvoker,则不会出现)并且对于某些文件名,则会出现盾牌。有关更多详细信息,请参阅我的博客文章(写于 Vista 时间,但仍然适用于 Windows 7 )以及有关 UAC 和 UI 指南。
The shield is there to remind the user that if they double-click the exe to run it, they will get a UAC dialog. These dialogs should never be a surprise and if you get one you weren't expecting, you should really not consent to it.
The shield appears if you have a manifest that requests elevation (requireAdministrator or highestAvailable, but not if your manifest specifies asInvoker), and for certain file names. For more details see my blog entry (written at Vista time, but still applies to Windows 7) and MSDN articles on UAC and UI guidelines.