Windows registry access error in 2023r3.1

Wired issue I cant work out…
if I run this code

var MDDBreg As New RegistryItem("Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Health Communication Network\Database")

in xojo 2021.r3.1 it works fine
If I try it on the latest verstion of Xojo(2023.3.1) I get an error
registryaccesserroexception
Not sure why, but interestingly if I runb this in an app from 2021.r3.1 it will run fin on 2023.3.1

Program saved as a binary , not sure if that makes any difference.

? Any idea why?

You need to have administrative rights to access this registry key. In the Windows build settings click the advanced icon to see this
image
change Privileges to administrator.

Just tried that, but it didnt help.
Tried changing to 32 bit build, but just “user” level access and changed the registry path to
var MDDBreg As New RegistryItem(“HKEY_LOCAL_MACHINE\SOFTWARE\Health Communication Network\Database”)
and that works…