How can a 32-bit and 64-bit app share an HKLM registry setting? RRS feed

  • Question

  • Hi all;

    We have an Office .NET Add-In and the Add-In runs in the bitness of Office. So 32-bit Office on 64-bit Windows means the AddIn is 32-bit and therefore when querying the HKLM registry, the nodes are under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node.

    We also have a stand-alone .NET app that runs in the bitness of Windows. So it goes to HKEY_LOCAL_MACHINE\SOFTWARE in the registry.

    The problem is we save the license key for these apps (they both use the same key) in the registry. I want to avoid writing the license key twice because I then have to worry about just one of the locations being updated. And it means I have to have the app in each mode update both registry locations.

    Is there a better way to do this?

    thanks - dave

    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    Sunday, March 25, 2018 3:46 PM

All replies