
dominique.schrecklin1.552494444672522E12 asked a question.
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 had to set REGDB_OPTION_WOW64_64KEY in the REGDB_OPTIONS.