I use HKEY_LOCAL_MACHINE to set a variable during installation. They should be visible to all users on the machine and read only by them.
I use Inno to create a record. He works as an administrator, so he must have adequate rights that virtualization does not work ... or I donβt understand?
My application can read the record (even a limited user in Win7), but I do not see them in RegEdit or RegEditX 3.0. I can see them in RegEditX 2.0. Weird
I do not understand why my Delphi application can see the record, but RegEdit programs cannot above.
I believe this may have something with virtualization (first answer here: Cannot read configuration data from HKEY_LOCAL_MACHINE in Vista ).
But I donβt even see the registry entry in question in the HKCU \ Software \ Classes \ VirtualStore \ MACHINE \ SOFTWARE section.
Is HKEY_LOCAL_MACHINE so obsolete that I should avoid it completely? How now should a developer save data for all users - simply in {commomappdata}, which is usually C: \ Program Data ... ??
source share