Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to make .reg file to create entries in both nodes?


08 Feb 2010   #1

Windows 7
 
 
How to make .reg file to create entries in both nodes?

Hi,

I have an existing .reg file that works fine on 32-bit systems. Now we are trying it on 64-bit systems, and found it only creates entries on 64-bit node (i.e. HKLM/TestKey/TestEntry), we also want it to create entries on 32-bit node (because our application is 32-bit), i.e. we want HKLM/Wow6432Node/TestKey/TestEntry. What is the proper way to do it?

Should we change the .reg file to add the part for Wow6432Node, or there is some flag/variable we can use to avoid the duplicate of all our data entries, or it can be controlled by the execution (parameters/options) command?

The existing .reg file looks like:

Quote:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\TestKey\TestEntry]
"SampleEntry1"="Sample Data1"
"SampleEntry2"="Sample Data2"
.....

Thanks,
PB

My System SpecsSystem Spec
.

08 Feb 2010   #2

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Quote   Quote: Originally Posted by pbsdis View Post
Hi,

I have an existing .reg file that works fine on 32-bit systems. Now we are trying it on 64-bit systems, and found it only creates entries on 64-bit node (i.e. HKLM/TestKey/TestEntry), we also want it to create entries on 32-bit node (because our application is 32-bit), i.e. we want HKLM/Wow6432Node/TestKey/TestEntry. What is the proper way to do it?

Should we change the .reg file to add the part for Wow6432Node, or there is some flag/variable we can use to avoid the duplicate of all our data entries, or it can be controlled by the execution (parameters/options) command?

The existing .reg file looks like:

Quote:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\TestKey\TestEntry]
"SampleEntry1"="Sample Data1"
"SampleEntry2"="Sample Data2"
.....

Thanks,
PB
Hello PB,

Just add the Wow6432Node to that Reg file should Take it to the 64-bit i.e.[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TestKey\TestEntry]

So

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TestKey\TestEntry]
"SampleEntry1"="Sample Data1"
"SampleEntry2"="Sample Data2"

And save it as Reg file should do the trick

Good Luck,
Captain
My System SpecsSystem Spec
Reply

 How to make .reg file to create entries in both nodes?




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 12:17 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33