MSIX : problem reading register key in HKCU

Copper Contributor

Hello,


I am currently testing the deployment of an executable from a MSIX, but I'm having a problem reading a key added to HKCU\Software\ from an executable located in my MSIX.

 

To read the key, I must go to HKCU\Wow6432Node\Software\.

I did the same thing in HKLM\Software\, and there I do not need to access to Wow6432Node because it is correctly placed in HKLM\Software\.
 

What could possibly cause this ?

Both the executable and the MSIX package are 32 bits.

 

Thanks.

3 Replies

Hi @aMesquita_ 

Theoretically, all 32 bit apps should be redirected to Wow5432Node. Why this does not happen for HKLM I don't know.

 

If I remember correctly I think I hit a similar situation and the only way for me was to mark the MSIX package as a 64 bit one, even if my app was a 32 bit and that solved the problem. 

 

 

@aMesquita_ One possibility (assuming the key was placed correctly into the package):

 

Sometimes older apps, especially with HKCU keys, open the key asking for "Full Permissions", rather than for Read/Write.  This stems from some old sample code Microsoft issued many years ago. The difference in such a request is that permission is granted to delete the key with full permissions.  Chances are the app doesn't intend to delete the key, but that asked for everything. The MSIX runtime blocks such requests.  You can determine if your app is doing with a trace.  

 

MSIX has no deletion marker capability such as App-V had. I have previously requested that Microsoft consider building a RegistryFixup for the Psf that would allow you to re-mark that request as Read/Write, however there has been no response to that request.

 

 

 

Hi @aMesquita_,

 

For additional information on how the registry works with MSIX, you can check out this article in our documentation. 

 

Best,

Sharla