Discussion of general topics about Mozilla Firefox
10 posts • Page 1 of 1
I'm a school netadmin, and I found to my surprise and dismay that after upgrading the school's Windows PCs to Firefox 3.6 I could no longer install extensions computer-wide with firefox.exe -install-global-extension something.xpi.
I was even more surprised to find that this is a feature, not a bug.
Rather than continue adding noise to bug 396510 or provoke further poo-flinging over in Firefox Builds, I'm opening this thread in the hope that one of you lovely people will be able to tell me how to achieve, in the brave new world of Gecko >= 1.9.2, exactly what I used to be able to using -install-global-extension.
What is current best practice for performing silent, scripted, administrative installation of selected Firefox extensions for all users of a given computer, without requiring the first user who runs Firefox after the installation to have admin rights, and without interrupting users' workflow with post-installation popups containing choices they could possibly get wrong?
Thanks in advance - Stephen
Starting a new topic isn't going to get you any new information that isn't already in the references you linked.
There have always been ghosts in the machine... random segments of code that have grouped together to form unexpected protocols. Unanticipated, these free radicals engender questions of free will, creativity, and even the nature of what we might call the soul...
Are you saying that because (a) new topics here are no more visible than old Builds topics (b) starting new topics instead of continuing old ones is frowned upon or (c) you know for sure that no convenient replacement for -install-global-extension currently exists?
In other words, should I (a) keep waiting for useful responses everywhere (b) go bump the Builds thread or (c) focus on resolving this issue unassisted?
Huh. Maybe I should (d) RTFM.
For the benefit of other people whose search skills have failed the same way mine apparently did, here is the Mozilla documentation on silent installation of global extensions for Gecko 1.9+.
Since I have already tried that method without success, it appears I have some debugging to do. Sorry if I've wasted anybody else's time.
Last edited by flabdablet on January 30th, 2010, 2:46 am, edited 2 times in total.
So, the failure was all my fault, and the documented extension installation procedures work just fine.
I am using 7-Zip to unzip the XPI packages, and my script was carelessly using 7z.exe e -yo"folder" package.xpi which flattens the zip file's folder hierarchy on expansion instead of 7z.exe x -yo"folder" package.xpi which preserves it.
I guess it is a little optimistic to expect an extension to work properly with a totally empty Chrome folder.
For the possible benefit of other long suffering netadmins, here's a typically horrid Windows cmd script. I'm not guaranteeing it will save you more time than it wastes, but the :mozextn subroutine it demonstrates is what I'm currently using to deploy Mozilla extensions at the school, and it works OK for now.
In fact it's marginally quicker than the old -install-global-extension method, and because it doesn't involve invoking Firefox, I no longer need to wedge a pre-built Firefox profile into "Documents and Settings\Default User\Application Data\Mozilla\Firefox" to stop the first-run wizard messing up my Windows startup script (with no profile in place, Firefox used to ignore -install-global-extension and do the "Import settings" dance instead).
I'm subscribed to this thread in case anybody needs help.
here is a similar script:
Both of you have provided interesting solutions.
My solution, which I did well before -install-global was even dropped was to make "Sendtos" directed to my Firefox profile extensions folders and my Thunderbird Program Folders extensions folder which is where I install my Thunderbird extensions globally. Also, with the Save Link in Folder extension, I am now able to save the add-ons to an archive as well as to the folder where they will be installed/updated.
OS'es: 4 computers with Win10AU (1607) Pro 64-bit; Current Firefox, Beta, Nightly
While I'm at it, here's a script to set Firefox as the default browser by updating the necessary registry keys directly. This is suitable for calling from a user logon script. It runs faster than using -setDefaultBrowser, doesn't litter desktop and quicklaunch bar with possibly unwanted shortcuts, and causes no mysterious delays and pop-ups from extension first-runs (Zotero, I'm looking at you). Enjoy.
Having had to deal with adding Lightning (who put their extension ID at the end of the install.rdf) to Tbird, I thought that checking for the Mozilla product IDs would be a good idea. This ought to check for other em:id tags that may appear before the id of the extension itself (I've used ckislam's script originally, but it should be easy to modify it for flabdablet's), replace the existing FOR loop with this:
If there are more em:ids for other Mozilla products then they can be added fairly easily.
10 posts • Page 1 of 1
Who is online
Users browsing this forum: Google Adsense [Bot] and 3 guests