搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Error with creating a custom Firefox installer with 7zip

  • 7 个回答
  • 2 人有此问题
  • 2 次查看
  • 最后回复者为 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.

被采纳的解决方案

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.

定位到答案原位置 👍 0

所有回复 (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.

由fireferret817于修改

more options
more options

选择的解决方案

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