You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files.
paramName
( optional enumerated Type array of paramType )
Undocumented.
Description of this parameter from the json schema.
This parameter was added in version . You must omit this parameter in earlier versions, and you may omit it in any version. If you require this parameter, the manifest key minimum_chrome_version can ensure that your extension won't be run in an earlier browser version.
Parameters

Google Chrome Extensions (Labs)

Other Deployment Options

Other Deployment Options
true

Usually, users install their own extensions. But sometimes you might want an extension to be installed automatically. Here are two typical cases:

  • An extension is associated with some other software, and the extension should be installed whenever the user installs that other software. The extension could also be uninstalled when the user removes that other software.
  • A network admin wants to install the same extensions throughout the company.

An extension that's installed automatically is known as an external extension. Google Chrome supports two ways of installing external extensions:

  • Using a preferences JSON file
  • Using the Windows registry (Windows only)

Both ways support installing an extension from a .crx extension file on the user's computer. The preferences JSON file also supports installing an extension hosted at an update URL. See hosting for details on hosting an extension.

Before you begin

First, package a .crx file and make sure that it installs successfully.

If you wish to install from an update URL, ensure that the extension is properly hosted.

Then, before you edit the preferences file or the registry, make a note of the following:

  • The intended location of the extension's .crx file, or the update URL from which it is served
  • The extension's version (from the manifest file or the chrome://extensions page)
  • The extension's ID (from the chrome://extensions page when you've loaded the packed extension)

The following examples assume the version is 1.0 and the ID is aaaaaaaaaabbbbbbbbbbcccccccccc.

Using a preferences file

Windows note: Until bug 41902 is fixed, you might want to use the Windows registry instead of the preferences file.

  1. If you are installing from a file, make the .crx extension file available to the machine you want to install the extension on. (Copy it to a local directory or to a network share for example, \\server\share\extension.crx or /home/share/extension.crx.)
  2. Locate the external_extensions.json file under the Google Chrome installation directory. If the file doesn't exist, create it. The location depends on the operating system.
    Windows:
    chrome_root\Application\chrome_version\Extensions\
    Example: c:\Users\Me\AppData\Local\Google\Chrome\Application\6.0.422.0\Extensions\
    Mac OS X:
    /Applications/Google Chrome.app/Contents/Extensions/
    Linux:
    /opt/google/chrome/extensions/
    Note: Use chmod if necessary to make sure that extensions/external_extensions.json is world-readable.
  3. Add an entry to external_extensions.json for your extension's ID. If you are installing from a file, specify the extension's location and version with fields named "external_crx" and "external_version". Example:
    {
      "aaaaaaaaaabbbbbbbbbbcccccccccc": {
        "external_crx": "/home/share/extension.crx",
        "external_version": "1.0"
      }
    }

    Note: You need to escape each \ character in the location. For example, \\server\share\extension.crx would be "\\\\server\\share\\extension.crx".

    If you are installing from an update URL, specify the extension's update URL with field name "external_update_url".

    Example:
    {
      "aaaaaaaaaabbbbbbbbbbcccccccccc": {
        "external_update_url": "http://myhost.com/mytestextension/updates.xml"
      }
    }
  4. Save the JSON file.
  5. Launch Google Chrome and go to chrome://extensions; you should see the extension listed.

Using the Windows registry

  1. Make the .crx extension file available to the machine you want to install the extension on. (Copy it to a local directory or to a network share — for example, \\server\share\extension.crx.)
  2. Find or create the following key in the registry:
    • 32-bit Windows: HKEY_LOCAL_MACHINE\Software\Google\Chrome\Extensions
    • 64-bit Windows: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Google\Chrome\Extensions
  3. Create a new key (folder) under the Extensions key with the same name as the ID of your extension (for example, aaaaaaaaaabbbbbbbbbbcccccccccc).
  4. Create two string values (REG_SZ) named "path" and "version", and set them to the extension's location and version. For example:
    • path: \\server\share\extension.crx
    • version: 1.0
  5. Launch the browser and go to chrome://extensions; you should see the extension listed.

Updating and uninstalling

Google Chrome scans the metadata entries in the preferences and registry each time the browser starts, and makes any necessary changes to the installed external extensions.

To update your extension to a new version, update the file, and then update the version in the preferences or registry.

To uninstall your extension (for example, if your software is uninstalled), remove the metadata from the preferences file or registry.

FAQ

This section answers common questions about external extensions.


Can I specify a URL as a path to the external extension?

Yes, if you host the extension as explained in hosting.


What are some common mistakes when installing with the preferences file?

  • Not specifying the same id/version as the one listed in the .crx
  • external_extensions.json is in the wrong location
  • Syntax error in JSON file (forgetting to separate entries with comma or leaving a trailing comma somewhere)
  • Extra curly brackets around the top level dictionary
  • JSON file entry points to the wrong path to the .crx (or path specified but no filename)
  • Backslashes in UNC path not escaped (for example, "\\server\share\file" is wrong; it should be "\\\\server\\share\\extension")
  • Permissions problems on a network share

What are some common mistakes when installing with the registry?

  • Not specifying the same id/version as the one listed in the .crx
  • Key created in the wrong location in the registry
  • Registry entry points to the wrong path to the .crx file (or path specified but no filename)
  • Permissions problems on a network share

What if the user uninstalls the extension?

If the user uninstalls the extension through the UI, it will no longer be installed or updated on each startup. In other words, the external extension is blacklisted.


How do I get off the blacklist?

If the user uninstalls your extension, you should respect that decision. However, if you (the developer) accidentally uninstalled your extension through the UI, you can remove the blacklist tag by installing the extension normally through the UI, and then uninstalling it.