在RegEdit中看不到某些HKEY_LOCAL_MACHINE条目 [英] Unable to see certain HKEY_LOCAL_MACHINE entries in RegEdit
问题描述
我正在使用HKEY_LOCAL_MACHINE在安装时设置变量。这些必须由计算机上的所有用户看到,并且只能由他们读取。
I'm using HKEY_LOCAL_MACHINE to set a variable at the time of install. These need to be seen by all users on a machine and are only read by them.
我使用Inno创建条目。它正在以管理员身份运行,因此它应该具有足够的权限,以至于虚拟化无法启动...还是我误会了?
I use Inno to create the entry. It's running as admin, so it should have adequate rights that virtualization doesn't kick in ... or am I misunderstanding?
我的应用程序可以读取该条目(即使Win7中的受限用户)但是我在RegEdit或RegEditX 3.0中看不到它们。我可以在RegEditX 2.0中看到它们。
My application can read the entry (even as a limited user in Win7) BUT I can't see them in RegEdit or RegEditX 3.0. I CAN see them in RegEditX 2.0 though. Weird.
我不明白为什么我的Delphi应用程序可以看到该条目,但是上面的RegEdit程序看不到。
I don't understand why my Delphi app can see the entry, but the RegEdit programs above can't.
我认为这可能与虚拟化有关(此处的第一个答案:无法从Vista上的HKEY_LOCAL_MACHINE读取配置数据)。
I believe that this might have something to so with virtualization (first answer here: Cannot read config data from HKEY_LOCAL_MACHINE on Vista).
但是,我什至看不到注册表项HKCU\软件\类\虚拟存储\机器\软件下的问题。
But, I can't even see the registry entry in question under HKCU\Software\Classes\VirtualStore\MACHINE\SOFTWARE.
HKEY_LOCAL_MACHINE是否被弃用,以至于我应该完全避免使用它?现在开发人员应该如何为所有用户保存数据-仅在{commomappdata}中保存,通常是C:\Program Data ... ??
Is HKEY_LOCAL_MACHINE so deprecated that I should be avoiding it completely? How is a developer now supposed to save data for all users - just in {commomappdata}, which usually is C:\Program Data... ??
推荐答案
64位版本的Windows通过 Windows on Windows(WoW)子系统模拟32位功能。对于注册表,出于兼容性原因,它们会将32位密钥移到特殊的子密钥上。
64-bit versions of Windows emulate 32-bit functionality through the "Windows on Windows" (WoW) subsystem. In the case of the registry, they move the 32-bit keys over to a special subkey for compatibility reasons.
密钥将位于: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
。
这是映射 system32 <的文件系统重定向器的注册表类似物/ code>到
SysWOW64
。
可以在有关的MSDN主题上找到更多详细信息。 href = http://msdn.microsoft.com/en-us/library/aa384232%28v=VS.85%29.aspx>注册表重定向器。
这篇关于在RegEdit中看不到某些HKEY_LOCAL_MACHINE条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!