Search code examples
browsergoogle-chrome-extensionbrowser-extension

How to install browser extension from my program


I want to bundle an extension with my executable, and I want it to automatically add it to the users browser if they have chrome or firefox. Is there a directory where I can drop the .crx file containing the extension for chrome, and chrome will automatically use it? And what should I do for firefox?


Solution

  • For Chrome:

    You can put it in the registry or drop it in the external-extensions.json file (%localappdata%/Google/Chrome/Application/chrome_xx.xxx.xxx.xxx/Extensions/).

    I never did it myself actually but it's all documented on the official channel: http://code.google.com/chrome/extensions/external_extensions.html

    There's also a way to install it via Group-Policy, but none of all these three methods is cross-platform AFAIK.

    For Firefox:

    I have no idea.