带有我的应用程序图标的安全中心符号盾牌 [英] Security center symbol shield with my Application Icon

查看:27
本文介绍了带有我的应用程序图标的安全中心符号盾牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个需要管理员权限才能执行的应用程序.在 Windows 7 上运行应用程序,用户始终必须以以管理员身份运行"的身份启动应用程序,否则我的应用程序会提示用户您没有管理权限等......".由于 Windows 7 中的 UAC,这是可以理解的.

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.

要摆脱用户必须将应用程序设置为以管理员身份运行"的问题.我更新了我的应用程序的app.manifest"并设置

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?"

我尝试通过 Windows 将我的另一个应用程序标记为始终以管理员身份运行",但该应用程序没有出现相同的图标.

I tried marking another of my applications to "Always Run as Administrator" via windows but the same icon wouldn't appear with that application.

我想了解原因和场景.

推荐答案

盾牌是为了提醒用户,如果他们双击 exe 运行它,他们将获得一个 UAC 对话框.这些对话不应该是一个惊喜,如果你得到一个你没有预料到的对话,你真的不应该同意.

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.

如果您的清单要求提升(requireAdministrator 或highestAvailable,但如果您的清单指定为Invoker),以及某些文件名,则会出现屏蔽.有关更多详细信息,请参阅 我的博客条目(写于 Vista 时代,但仍适用于 Windows 7) 和关于 UAC用户界面指南.

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.

这篇关于带有我的应用程序图标的安全中心符号盾牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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