Post by "WilliamLuo", 2007-03-01, 16:14
-----------------------------------------------------
Windows Vista下(其实Windows XP也一样),一个Exe文件或者快捷方式的属性设置中,有一个Compatibility选项卡,在Privilege Level部分有一个Run this program as an administrator的Checkbox。
有人提出一个需求:能不能在创建一个快捷方式的时候,直接将此CheckBox钩上?省得用户老被提示?
Reply by "KevinShan", 2007-03-01, 16:36
-----------------------------------------------------
搜了以下注册表,发现这项设置相当于在注册表中HKCU \Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers下面添加一个键值。
举例如下:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"F:\\pastime\\game\\Westwood\\Ra2\\YURI.exe"="WIN98"
"C:\\Documents and Settings\\kevinshan\\Desktop\\Remote\\TestControls2006.exe"="DISABLECICERO"
第一个键值是说YURI.exe兼容98模式
第二个程序是说TestControls2006.exe关闭高级文字功能。
网上搜了一下,说也相当于修改C:\Windows\AppPatch下的sysmain.sdb兼容性数据库。 |
|