Forum Discussion
Nov 03, 2021
Application Hive limitations for HKCU
When we have an MSIX package that contains a Registry.dat hive with REGISTRY\USER keys and name/value pairs, the behavior of the runtime is, in in mind, incorrect and leads to many issues with bringi...
Dian Hartono
Microsoft
Nov 12, 2021So according to your post you are adding user keys (HKCU) to Registry.dat, but Registry.dat can only contain machine keys (HKLM).
User keys should be added to User.dat, not Registry.dat. Can you please try that and see if that works?
User keys should be added to User.dat, not Registry.dat. Can you please try that and see if that works?
- Nov 16, 2021
Well let me clarify. I did intend to say the Registry.dat as that's one of the places they are stored when a package is captured by the Microsoft MSIX packaging tool (see attached image). Another copy of the user portion contained in that file is also stored in the User.dat file, so whichever source the installer uses I mean that one.
By the way, it would be nice to know if one of those is a mistake by the packaging tool and not needed in the package. My tooling, for example, assumes that since the MMPT is putting the user registry keys in both dat file, I must make duplicate changes in both of those files when editing the package.