Unable to install Firefox add-on: when everything else fails

In: How To

Posted by Geries Handal

14 Jul 2009

Let’s assume that you are running Vista and trying to install a Firefox extension/add-on like firebug, yslow or zotero. No matter what you do, the “freaking” extensions/add-on will not install. You tried all the recommendations by Mozilla’s article “Unable to install addons“. You Googled for solutions, and even tried a fresh installation of Firefox; still no solution. Why not try running Firefox “as administrator”, by right clicking on the shortcut and selecting “Run as Administrator”. That worked for me. Why?

If you go to %APPDATA%/Roaming/Mozilla/Firefox/Profiles/[random text followed by .default]/extensions.log and see something similar, to what is below then the run as administrator may work.

2009-07-13 17:38:50 – safeInstallOperation: install operation (caller-supplied callback) failed, rolling back file moves and aborting installation.
2009-07-13 17:38:50 – ExtensionManager:_finishOperations – failure, catching exception – lineno: 1658 – file: undefined – [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIZipReader.extract]"  nsresult: "0×80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/components/nsExtensionManager.js :: extractExtensionFiles :: line 1658"  data: no]
2009-07-13 17:38:51 – ExtensionManager:_finishOperations – failure, catching exception – lineno: 4969 – file: file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/components/nsExtensionManager.js – TypeError: entries[i] is null

Note the “NS_ERROR_FILE_ACCESS_DENIED”. Apparently some component on the process doesn’t have the right to extract the files from the xpi and put them on the respective folder (in):

%APPDATA%/Roaming/Mozilla/Firefox/Profiles/[random text followed by .default]/extensions/

Credit where credit is due

Inspiration to this came thanks to this forum thread, although the solution by MANDY (almost at the end of the thread). His solution is the following

I downloaded the actual firebug.xpi file and extracted it’s contents (using 7-zip). I placed those contents into a folder called firebug@software.joehewitt.com.
Then, I went ahead and tried to install firebug as normal. I kept the profiles/extensions folder open so I can see what is going on.
During the install process, as I watch the extensions folder, I see the firebug@software.joehewitt.com being automatically created. Then wait a few more seconds and watch as it disappears.
It is at this point that I paste in the folder that I extracted the .xpi files to.
Back to firefox. Exit. Restart. Firebug works.

You can also open the content of the .xpi file with WINRAR. Just run it and then go to File->Open Archive and you will be able to see the contents of the .xpi. However if you Run as Administrator all this is not necessary and especially when you have to do it for 3 extensions or more.

You can tell me if it works?

4 Responses to Unable to install Firefox add-on: when everything else fails

Avatar

cassie

October 9th, 2009 at 7:29 am

run as admin did not work for me. creating a new/clean FF profile did not work either.
FF 3.5.3, FB 1.4.3, Vista Bus.
will try the extract option next.
Thanks for sharing.

Avatar

cassie

October 9th, 2009 at 7:30 am

btw: entering your captcha incorrectly deletes the message content (for me)

Avatar

cassie

October 9th, 2009 at 10:12 am

yup. extract worked for me.

Avatar

Geries Handal

October 9th, 2009 at 12:40 pm

That is nice to know. By the way, yesterday I did update of firebug, had to do it using the extract method. First by deleting the old one and installing the new version. If you try to do an update using the addon manager it will not work and will continuously tell you that you need to restart the browser for the new update to finish installing.

Comment Form

 

About this blog

A personal blog where I write about my current projects, work and interests. The posts are a reflection on my current self, varying over time, since change is the only constant.

Welcome to G To The Square, my thoughts on ICT, Business and Life... in a Square.