This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Problem adding reg entry on 64bit system
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 21, 2010
06:33 AM
Problem adding reg entry on 64bit system
Hi
I do have an InstallScript MSI project where I do add an entry to the registry in HKEY_LOCAL_MACHINE. When executing this installer, the new key is automatically added in both normal and WOW64 structure on a 64bit system.
Now, I do have an InstallScript project where I do also add an entry, but using installscript:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey = "Software\\Microsoft\\Windows NT...";
RegDBSetKeyValueEx (szKey, szName, REGDB_NUMBER, "0", -1);
This code does only add the entry to the WOW64 structure.
What am I doing wrong that this key does not get into both structures?
I do have an InstallScript MSI project where I do add an entry to the registry in HKEY_LOCAL_MACHINE. When executing this installer, the new key is automatically added in both normal and WOW64 structure on a 64bit system.
Now, I do have an InstallScript project where I do also add an entry, but using installscript:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey = "Software\\Microsoft\\Windows NT...";
RegDBSetKeyValueEx (szKey, szName, REGDB_NUMBER, "0", -1);
This code does only add the entry to the WOW64 structure.
What am I doing wrong that this key does not get into both structures?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 21, 2010
07:02 AM
SOLVED
I had to set REGDB_OPTION_WOW64_64KEY in the REGDB_OPTIONS.
I had to set REGDB_OPTION_WOW64_64KEY in the REGDB_OPTIONS.