Windows 10: Compatibility feature bug?

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:37:35

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/36116489/windows-10-compatibility-feature-bug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!