N
nuttinbutspam@gmail.com
Guest
I need to import a .reg file on 32-bit and 64-bit systems. The .reg
file contains settings for a 32-bit-only program. In a 32-bit
environment the settings are stored at "HKLM/Software/CompanyName/
ProductName", but on a 64-bit system, the settings are stored at "HKLM/
Software/Wow6432Node/CompanyName/ProductName".
I understand the idea of the "Wow6432Node" registry key: 32-bit apps
in a 64-bit environment that read and write to the "Software" key, are
automatically redirected (behind the scenes) to the "Sofware/
Wow6432Node" key. Unfortunately, this seems to only work when the 32-
bit app itself accesses the registry.
Is there a mechanism in the .reg file syntax or in the "reg add"
command line syntax to ALWAYS treat the .reg file as if it were a 32-
bit application accessing the registry? Currently I have 2 .reg files
(one for each architecture), but that could get messy. I mean, just
imagine if I accidentally imported a "Wow6432Node" on a 32-bit system.
I have seen several scripts use the existence of this key to determine
what the architecture is. Given, this is a horrible idea for detecting
the architecture, but it nevertheless presents the possibility of
corrupting the registry.
TIA for any help,
-Jack
file contains settings for a 32-bit-only program. In a 32-bit
environment the settings are stored at "HKLM/Software/CompanyName/
ProductName", but on a 64-bit system, the settings are stored at "HKLM/
Software/Wow6432Node/CompanyName/ProductName".
I understand the idea of the "Wow6432Node" registry key: 32-bit apps
in a 64-bit environment that read and write to the "Software" key, are
automatically redirected (behind the scenes) to the "Sofware/
Wow6432Node" key. Unfortunately, this seems to only work when the 32-
bit app itself accesses the registry.
Is there a mechanism in the .reg file syntax or in the "reg add"
command line syntax to ALWAYS treat the .reg file as if it were a 32-
bit application accessing the registry? Currently I have 2 .reg files
(one for each architecture), but that could get messy. I mean, just
imagine if I accidentally imported a "Wow6432Node" on a 32-bit system.
I have seen several scripts use the existence of this key to determine
what the architecture is. Given, this is a horrible idea for detecting
the architecture, but it nevertheless presents the possibility of
corrupting the registry.
TIA for any help,
-Jack