X
Tap here to go to the mobile version of the site.

Support Forum

AddOns for all users

Posted

I am trying to deploy Firefox on staff machines at my work.

We are using Windows 7 on them and want to be able to have extensions available for all users on that machine.

However, after much research it seems that all the prior solutions for this problem have been restricted or removed.

There should be an easy way to have addOns installed for all users. Its not feasable to make every single user install every single addOn one by one.

I am trying to deploy Firefox on staff machines at my work. We are using Windows 7 on them and want to be able to have extensions available for all users on that machine. However, after much research it seems that all the prior solutions for this problem have been restricted or removed. There should be an easy way to have addOns installed for all users. Its not feasable to make every single user install every single addOn one by one.

Chosen solution

So while the links were good and it all worked, but I figured that there should be an easier source of step by step to get an addon to work for all users in a "dumbed down" version. Following this I got any addOn to work for all users, there might be shortcuts here and there but this worked for me.

So here it is:

1. First you need to download the ".XPI" file of the addOn. This is normally done by downloading it using a seperate browser (Internet explorer).


2. Once Downloaded you need to extract the contents of the ".XPI" file into a folder. I used WinZip for this.


3. Go to the extracted files and you should see a file in it called "install.rdf". Open this file with WordPad.


4. Within this file is a Unique ID, specific to the addOn. It is normally at the top of the file. You can search for

 <Description about="urn:mozilla:install-manifest">

and the next line after this should be your ID in the form of:

 {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} 

as an example.


5. Using this Unique ID, you need to create a folder within the Install Directory of Mozilla Firefox called "distribution", and a subfolder in that called "extensions", and a subfolder in that using the name of your Unique ID. Example:

 C:\Program Files (x86)\Mozilla Firefox\distribution\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

Within this folder you should dump your extracted contents of the ".XPI" file.


6. You now need to tell Mozilla to look in these folders. To do this you need to change the global preferences. This is done by going to:

 C:\Program Files (x86)\Mozilla Firefox\defaults\pref

Within this folder you should have 2 files:

 channel-prefs.js
 user.js

If they aren't there, please create them.

Inside "channel-prefs.js" you need to put the following at the end of the file:

 pref("app.update.channel", "release");
 pref("extensions.enabledScopes", "0");
 user_pref("extensions.autoDisableScopes", 0);

Inside "user.js" you need to put the following at the end of the file:

 user_pref("extensions.shownSelectionUI", true);
 user_pref("extensions.autoDisableScopes", 0);


7. That's it, you're done! Your addOn should be automatically enabled next time the user starts up Firefox.

Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.8 r800
  • Next Generation Java Plug-in 10.25.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • 5.1.20513.0
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.03
  • Google Update
  • GEPlugin
  • Adobe Shockwave for Director Netscape plug-in, version 11.6.8.638
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • ProductView Client 9.1.61.27
  • iTunes Detector Plug-in
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers
  • Adobe Shockwave for Director Netscape plug-in, version 11.5
  • NPWLPG

Application

  • Firefox 22.0
  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
  • Support URL: http://support.mozilla.org/1/firefox/22.0/WINNT/en-US/

Proširenja

  • Adobe Contribute Toolbar 6.0 ({01A8CA0A-4C96-465b-A49B-65C46FAD54F9})
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: Intel(R) HD Graphics Family
  • adapterDescription2:
  • adapterDeviceID: 0x0102
  • adapterDeviceID2:
  • adapterDrivers: igdumd64 igd10umd64 igd10umd64 igdumdx32 igd10umd32 igd10umd32
  • adapterDrivers2:
  • adapterRAM: Unknown
  • adapterRAM2:
  • adapterVendorID: 0x8086
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.16492
  • driverDate: 1-7-2011
  • driverDate2:
  • driverVersion: 8.15.10.2279
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d'}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (Intel(R) HD Graphics Family)
  • windowLayerManagerType: Direct3D 10

Modified Preferences

  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.places.smartBookmarksVersion: 4
  • browser.startup.homepage_override.buildID: 20130618035212
  • browser.startup.homepage_override.mstone: 22.0
  • dom.mozApps.used: True
  • extensions.lastAppVersion: 22.0
  • gfx.direct3d.last_used_feature_level_idx: 0
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1375665964
  • places.history.expiration.transient_current_max_pages: 49082
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • privacy.sanitize.migrateFx3Prefs: True
  • storage.vacuum.last.index: 0
  • storage.vacuum.last.places.sqlite: 1375665964

Misc

  • User JS: No
  • Accessibility: No
Waka_Flocka_Flame 441 solutions 5048 answers
refer to * http://kb.mozillazine.org/Installing_extensions#Global_installation
cor-el
  • Top 10 Contributor
  • Moderator
12006 solutions 111551 answers
See also: *http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/ *https://developer.mozilla.org/en/Installing_extensions *https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry *https://developer.mozilla.org/En/Developer_Guide/Customizing_Firefox

Chosen Solution

So while the links were good and it all worked, but I figured that there should be an easier source of step by step to get an addon to work for all users in a "dumbed down" version. Following this I got any addOn to work for all users, there might be shortcuts here and there but this worked for me.

So here it is:

1. First you need to download the ".XPI" file of the addOn. This is normally done by downloading it using a seperate browser (Internet explorer).


2. Once Downloaded you need to extract the contents of the ".XPI" file into a folder. I used WinZip for this.


3. Go to the extracted files and you should see a file in it called "install.rdf". Open this file with WordPad.


4. Within this file is a Unique ID, specific to the addOn. It is normally at the top of the file. You can search for

 <Description about="urn:mozilla:install-manifest">

and the next line after this should be your ID in the form of:

 {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} 

as an example.


5. Using this Unique ID, you need to create a folder within the Install Directory of Mozilla Firefox called "distribution", and a subfolder in that called "extensions", and a subfolder in that using the name of your Unique ID. Example:

 C:\Program Files (x86)\Mozilla Firefox\distribution\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

Within this folder you should dump your extracted contents of the ".XPI" file.


6. You now need to tell Mozilla to look in these folders. To do this you need to change the global preferences. This is done by going to:

 C:\Program Files (x86)\Mozilla Firefox\defaults\pref

Within this folder you should have 2 files:

 channel-prefs.js
 user.js

If they aren't there, please create them.

Inside "channel-prefs.js" you need to put the following at the end of the file:

 pref("app.update.channel", "release");
 pref("extensions.enabledScopes", "0");
 user_pref("extensions.autoDisableScopes", 0);

Inside "user.js" you need to put the following at the end of the file:

 user_pref("extensions.shownSelectionUI", true);
 user_pref("extensions.autoDisableScopes", 0);


7. That's it, you're done! Your addOn should be automatically enabled next time the user starts up Firefox.

So while the links were good and it all worked, but I figured that there should be an easier source of step by step to get an addon to work for all users in a "dumbed down" version. Following this I got any addOn to work for all users, there might be shortcuts here and there but this worked for me. So here it is: 1. First you need to download the ".XPI" file of the addOn. This is normally done by downloading it using a seperate browser (Internet explorer). 2. Once Downloaded you need to extract the contents of the ".XPI" file into a folder. I used WinZip for this. 3. Go to the extracted files and you should see a file in it called "install.rdf". Open this file with WordPad. 4. Within this file is a Unique ID, specific to the addOn. It is normally at the top of the file. You can search for <Description about="urn:mozilla:install-manifest"> and the next line after this should be your ID in the form of: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} as an example. 5. Using this Unique ID, you need to create a folder within the Install Directory of Mozilla Firefox called "distribution", and a subfolder in that called "extensions", and a subfolder in that using the name of your Unique ID. Example: C:\Program Files (x86)\Mozilla Firefox\distribution\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} Within this folder you should dump your extracted contents of the ".XPI" file. 6. You now need to tell Mozilla to look in these folders. To do this you need to change the global preferences. This is done by going to: C:\Program Files (x86)\Mozilla Firefox\defaults\pref Within this folder you should have 2 files: channel-prefs.js user.js If they aren't there, please create them. Inside "channel-prefs.js" you need to put the following at the end of the file: pref("app.update.channel", "release"); pref("extensions.enabledScopes", "0"); user_pref("extensions.autoDisableScopes", 0); Inside "user.js" you need to put the following at the end of the file: user_pref("extensions.shownSelectionUI", true); user_pref("extensions.autoDisableScopes", 0); 7. That's it, you're done! Your addOn should be automatically enabled next time the user starts up Firefox.
cor-el
  • Top 10 Contributor
  • Moderator
12006 solutions 111551 answers

I don't think that the user_pref() calls will work because these files are run as JavaScript and not interpreted like the regular user.js file is.
Also it is bad practice to modify built-in files like channel-prefs.js when you can easily add another .js file that contains all the pref() calls.

I don't think that the user_pref() calls will work because these files are run as JavaScript and not interpreted like the regular user.js file is.<br /> Also it is bad practice to modify built-in files like channel-prefs.js when you can easily add another .js file that contains all the pref() calls.