Skip to content

Bulletproof installation

serv-inc edited this page May 14, 2019 · 11 revisions

Bulletproof Installation

How to install the addon so that it cannot be uninstalled or disabled? This depends on the OS and Browser

Linux

Chromium

For chromium, add the ExtensionInstallForceList in f.ex. /etc/chromium/policies/managed/safe.json (can be another file in that directory)

{
    "ExtensionInstallForcelist": [
	 "fiopkogmohpinncfhneadmpkcikmgkgc;https://clients2.google.com/service/update2/crx"
    ]
}

Firefox

You can use the new policies.json file:

{
  "policies": {
    "Extensions": {
	"Install": [
	    "https://addons.mozilla.org/firefox/downloads/latest/sas/"
	],
	"Locked": [
	    "{b52acdad-e4a6-44da-afc9-9bd22572db99}"
	]
    }
  }
}

Write this file to your Firefox distribution dir. On Ubuntu with Firefox ESR 60.2, this is

/usr/lib/firefox-esr/distribution

You might need to create it.

Windows

Chromium

Follow the instructions at https://support.google.com/chrome/a/answer/187202?hl=en, setting the extension update URL to fiopkogmohpinncfhneadmpkcikmgkgc;https://clients2.google.com/service/update2/crx. If the gpedit.msc step does not find the program, you can follow http://www.askvg.com/how-to-enable-group-policy-editor-gpedit-msc-in-windows-7-home-premium-home-basic-and-starter-editions.

Firefox

see the Linux solution, change the distribution dir. @sfrauenfelder gives the target file as C:\Program Files\Mozilla Firefox\distribution\policies.json or C:\Program Files (x86)\Mozilla Firefox\distribution\policies.json.

He also provides the following links

Clone this wiki locally