cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tcom36
Level 7

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?
Labels (1)
0 Kudos
(1) Reply
tcom36
Level 7

SOLVED

I had to set REGDB_OPTION_WOW64_64KEY in the REGDB_OPTIONS.
0 Kudos