My 32-bit PB app needs to check the registry settings for a third party 64-bit application.
This community and the bug tracker both state that PB2017 won't allow me to do it.
Come PB2019... As far as I understand it, the New Features document specifically states that this problem has been addressed. But I still fail to access the non-redirected HKLM\Software registry section.
Here is a barebones demo, to be pasted to an Application Open script:
String las_std, las_wow String ls_tit, ls_msg Environment lenv GetEnvironment(lenv) ls_tit = String(lenv.ProcessBitness) + " bits - PB version " ls_tit += String(lenv.PBMajorRevision) + "." + String(lenv.PBMinorRevision) + "." + String(lenv.PBFixesRevision) + "." + String(lenv.PBBuildNumber) ls_msg = "Key count under HKLM\Software:~r~n" RegistryKeys("HKEY_LOCAL_MACHINE\SOFTWARE", las_std) ls_msg += "~r~nStd = " + String(UpperBound(las_std)) RegistryKeys("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node", las_wow) ls_msg += "~r~nWoW = " + String(UpperBound(las_wow)) MessageBox(ls_tit, ls_msg) HALT CLOSE
I compiled this code into 32- and 64-bit apps with PB 2017R2 (build 1858) and PB 2019 (build 2082). 32-bit apps show the same count, and 64-bit apps show differing counts. PB version makes no difference in the numbers shown.
Is there an option or a setting I am missing ?