Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Error with creating a custom Firefox installer with 7zip

  • 7 odgovori
  • 2 ima ovaj problem
  • 2 views
  • Posljednji odgovor poslao cor-el

more options

Hi,

I've attempted to create a Firefox installer for Windows, as per the instructions on following page:

http://mike.kaply.com/2012/02/14/customizing-the-firefox-installer-on-windows-2012/

I followed the instructions under "How do I unpack the Firefox installer?", "How do I bundle my add-on with the Firefox installer?", and "How do I repackage the installer?", in that order, including the steps to integrate add-ons into Firefox ( http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/ ).

However, when I open the final .exe, 7zip automatically attempts to extract contents, and I receive the following response from 7zip: "The system cannot find the file specified". I'm not sure if is purely because I didn't install MozillaBuild, as all steps up to running the final .exe seem to work. Or maybe I did something wrong, as my changes to the preferences file don't seem to take effect. Or perhaps the solution is outdated?

I will be happy to furnish any relevant details, such as Windows OS, 7zip version, current Firefox browser version, etc.

Hi, I've attempted to create a Firefox installer for Windows, as per the instructions on following page: http://mike.kaply.com/2012/02/14/customizing-the-firefox-installer-on-windows-2012/ I followed the instructions under "How do I unpack the Firefox installer?", "How do I bundle my add-on with the Firefox installer?", and "How do I repackage the installer?", in that order, including the steps to integrate add-ons into Firefox ( http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/ ). However, when I open the final .exe, 7zip automatically attempts to extract contents, and I receive the following response from 7zip: "The system cannot find the file specified". I'm not sure if is purely because I didn't install MozillaBuild, as all steps up to running the final .exe seem to work. Or maybe I did something wrong, as my changes to the preferences file don't seem to take effect. Or perhaps the solution is outdated? I will be happy to furnish any relevant details, such as Windows OS, 7zip version, current Firefox browser version, etc.

Izabrano rješenje

Thanks for all of your assistance! I actually ended up solving my own problem after a few attempts. Here's the solution:

When http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/ says that you "create a directory with the same ID as your add-on...", it is referring to the ID in your install.rdf file. You need to go to the install.rdf, look for the ID field, then rename your XPI/directory to that ID.

There are two ID fields in your install.rdf. You want the first one - the one that CCK2 prompts you to write like an e-mail address (e.g. "somename@somedomain" ). The second one - I believe - is some constant, since it is the same ID as the one for Mozilla's own Hello World XPI.

Pročitajte ovaj odgovor sa objašnjenjem 👍 0

All Replies (7)

more options
more options

I'll look into this within the next couple of days; thanks! I was aware of the second link (used CCK2 to make a plugin) but wasn't aware of the first.

Are there more recent "major changes" blog posts by Mike Kaply in his blog? I'm wondering because Firefox is now at version 31.

Izmjenjeno od strane fireferret817

more options
more options

Odabrano rješenje

Thanks for all of your assistance! I actually ended up solving my own problem after a few attempts. Here's the solution:

When http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/ says that you "create a directory with the same ID as your add-on...", it is referring to the ID in your install.rdf file. You need to go to the install.rdf, look for the ID field, then rename your XPI/directory to that ID.

There are two ID fields in your install.rdf. You want the first one - the one that CCK2 prompts you to write like an e-mail address (e.g. "somename@somedomain" ). The second one - I believe - is some constant, since it is the same ID as the one for Mozilla's own Hello World XPI.

more options

If you mean this ID {ec8030f7-c20a-464f-9b0e-13a3a9e97384} then that is the ID of Firefox and appears under the targetApplication section with the supported Firefox versions.

more options

Yes, that's the second ID I was referring to - the one I said to NOT copy-paste.

That makes sense. Thanks for clarifying that point!