为什么我的程序在某些 PC 上显示 Windows UAC 图标,而在其他 PC 上不显示? [英] Why does Windows UAC icon appear for my program on some PCs but not others?

查看:30
本文介绍了为什么我的程序在某些 PC 上显示 Windows UAC 图标,而在其他 PC 上不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近注意到,我们开发的一个应用程序在我们的一些客户的 PC 上有 Windows UAC 图标,但在我们的 PC 上没有.有什么原因可能会发生这种情况吗?

I have recently noticed that an application we have developed has the windows UAC icon next to it on some of our customers' PCs but not ours. Is there any reason why this might happen?

我注意到这一点的原因是客户声称该软件突然停止工作,并且在检查他们的 PC 时,我注意到 UAC盾牌"位于我们应用程序的图标上 - 我以前从未见过这种情况,而且确实如此当我在我的 PC 上安装它时,它不存在,所以我想知道他们的 PC 是否有任何更改可能导致这种情况,这是否可能与应用程序停止工作的原因有关?

The reason I noticed this is that the customer claims that the software has suddenly stopped working, and when inspecting their PC I noticed that the UAC 'shield' is on our application's icon - I've never seen this before and it certainly isn't there when I install it on my PC, so I'm wondering if any changes to their PC may have caused this, and if this could be related to why the application has stopped working?

推荐答案

如果有人感兴趣,这里是问题的原因和解决方案.

If anyone's interested, here was the cause of, and solution to, the problem.

不知何故,客户端告诉程序始终以管理员身份运行,这就是导致 UAC 消息的原因,并以某种方式阻止它正常工作(外部 Excel 工作表应该通过 DLL 与其通信,这就是停止工作的原因).

Somehow the client had told the program to run as administrator at all times, which is what brought up the UAC message, and somehow stopped it from working properly (an external Excel worksheet was supposed to be communicating with it via a DLL, which is what stopped working).

要关闭此模式,我右键单击我的应用程序可执行文件,单击属性 > 兼容性并取消选中以管理员身份运行此程序"复选框.这立即解决了问题.您还可以使用更改所有用户的设置"对话框为多个用户更改此设置.

To turn this mode off, I right-clicked on my application executable, clicked properties > compatibility and unchecked the 'Run this program as an administrator' checkbox. This immediately solved the problem. You could also use the 'Change settings for all users' dialog to change this setting for multiple users.

这篇关于为什么我的程序在某些 PC 上显示 Windows UAC 图标,而在其他 PC 上不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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