Can I ForceInstall a Edge extension without using GPO?

john.gage 1 Reputation point
2022-06-29T16:25:58.027+00:00

I'd like to silently install an edge extension programmatically in such a way that the user cannot disable the extension.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,238 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XuDong Peng-MSFT 10,341 Reputation points Microsoft Vendor
    2022-06-30T06:11:28.373+00:00

    Hi @john.gage ,

    I'd like to silently install an edge extension programmatically in such a way that the user cannot disable the extension.

    Based on your requirement, if you have sufficient permissions to edit/modify the registry then you should be able to implement your needs via the registry. You need to do something as following:

    1. Find or create the following key in the registry:
      • 32-bit Windows : HKEY_LOCAL_MACHINE\Software\Microsoft\Edge\Extensions.
      • 64-bit Windows : HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Edge\Extensions.
        1. Create a new key, or folder, under Extensions with the same name as the ID of your extension. For example, create the key with the name aaaaaaaaaabbbbbbbbbbcccccccccc.
        2. In the Extensions key, create the ** update_url ** property, and set the value to https://edge.microsoft.com/extensionwebstorebase/v1/crx. The ** update_url ** property points to the .crx file of your extension in the Microsoft Edge Add-ons website.

    Something like this:

       {  
           "update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"  
       }  
    

    Since I'm not sure what language you're trying to implement it in, I think what needs to be done should be similar. For example, in C#, you can use Registry Class and some of its corresponding methods to edit/modify the registry.

    Regards,
    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.