32-bit and 64-bit Registry keys and Backup/Restore Plugin
Posted: 10 May 2022 12:37
FH stores preferences in two different Registry keys. One of these keys has two alternative locations, depending on whether it is 32 or 64-bit Windows.
FHUG prototypes of the Backup and Restore plugin called the 64-bit values explicitly, so did not work in 32-bit Windows. The store version calls the 32-bit values, which returns a value in both 32-bit and 64-bit Windows, giving full interoperability between the two versions.
This works perfectly when run within the plugin, but I have discovered that the 32-bit version is only accessible from within the 32-bit application that it relates to (such as FH), not directly from 64-bit Windows.
This only affects advanced users who create their own backup scripts that they run directly, as one of the two FH Registry keys is not saved. I’ll fix it in the next release, but in the meantime, advanced users may want to correct the scripts themselves.
Simply change (and the corresponding command in the Restore batch file)
Reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Calico Pie\Family Historian\2.0\Preferences ..."
to
Reg export "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Calico Pie\Family Historian\2.0\Preferences ..."
FHUG prototypes of the Backup and Restore plugin called the 64-bit values explicitly, so did not work in 32-bit Windows. The store version calls the 32-bit values, which returns a value in both 32-bit and 64-bit Windows, giving full interoperability between the two versions.
This works perfectly when run within the plugin, but I have discovered that the 32-bit version is only accessible from within the 32-bit application that it relates to (such as FH), not directly from 64-bit Windows.
This only affects advanced users who create their own backup scripts that they run directly, as one of the two FH Registry keys is not saved. I’ll fix it in the next release, but in the meantime, advanced users may want to correct the scripts themselves.
Simply change (and the corresponding command in the Restore batch file)
Reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Calico Pie\Family Historian\2.0\Preferences ..."
to
Reg export "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Calico Pie\Family Historian\2.0\Preferences ..."