当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

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.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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