Forum Discussion

lucasq's avatar
lucasq
Copper Contributor
Jan 20, 2021
Solved

How to install Chrome Extensions with MSIX

Hello,   We have a Desktop app that communicates with a Chrome Extension. Our old *.exe installer is able to install both the desktop app and the Chrome Extension in the user machine properly. It u...
  • Bogdan Mitrache's avatar
    Jan 22, 2021

    Hi lucasq,

     

    Currently, an MSIX package cannot create registry entries directly on the machine, i.e. outside of its container. Therefore, I don't think it is possible to register the chrome extension at install-time.

     

    In my MSIX introduction guide, you can read a quick explanation of how an MSIX handles the registry. More details are available in the MS docs.

     

    What you can try is to have your application create the HKLM entries the first time it launches. According to the MS docs, you should be able to write under HKLM\Software hive if the same registry key is not part of your package. (make sure you delete HKEY_LOCAL_MACHINE\Software\Wow6432Node\Google\Chrome\Extensions from your package).

     

    Quoting MS:

     

    Writes under HKLM\Software are allowed as long as a corresponding key/value does not exist in the package hive and the user has the correct access permissions.

     

Resources