Windows 10:兼容性功能错误? [英] Windows 10: Compatibility feature bug?

查看:242
本文介绍了Windows 10:兼容性功能错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的安装程序通过注册表为所有用户设置了应用程序的兼容性模式:

My installer sets a compatibility mode for an app via registry (for all users):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Program\\Program.exe"="RUNASADMIN"

Windows 10会忽略此设置-在打开属性/兼容性选项卡之前,没有UAC提示,请手动取消选择以管理员身份运行,然后重新选择。另一个解决方案是也为当前用户创建一个注册表项:

Windows 10 ignores this, though, - no UAC prompt until I open properties/compatibility tab, manually deselect "run as admin", and select it back. Another solution is to create an registry entry for the current user as well:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Program\\Program.exe"="RUNASADMIN"

为什么?我在Win 7下仅创建HKLM注册表项没有问题-系统始终能够识别所需的兼容性选项。

Why is this? I've had no problems with creating only HKLM registry keys under Win 7 - the system has always recognized the needed compatibility options.

推荐答案

可能正在做您正在做的事情,您需要添加〜和空格。
与〜RUNASADMIN中的一样。
这对我有用。
Windows十大论坛

It may be that do what you are doing you need to add ~ and a space. As in "~ RUNASADMIN". This worked for me. There is more discussion on this at Windows Ten Forums.

这篇关于Windows 10:兼容性功能错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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