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


  1. Posts : 2
    Windows 7
       #1

    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:

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

    Thanks,
    PB
      My Computer


  2. Posts : 4,772
    Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
       #2

    pbsdis said:
    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:

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 20:36.
Find Us