Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Error with creating a custom Firefox installer with 7zip

  • 7 odpovědí
  • 2 mají tento problém
  • 2 zobrazení
  • Poslední odpověď od 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.

Zvolené řešení

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.

Přečíst dotaz v kontextu 👍 0

Všechny odpovědi (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.

Upravil uživatel fireferret817 dne

more options
more options

Zvolené řešení

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!

more options

You're welcome