Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Not able to install .xpi file in firefox

  • 4 trả lời
  • 37 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi antonioaraujob

more options

I have created my first addon and it is working fine in dynamic mode (pointer in profiles folder to development folder). Then I created the .xpi file by compressing entire content as .zip and replacing it with .xpi. I tried to installed this. Firefox does not install the addon neither it give any error. Firefox shows the regular warning while installing the addons and ask for restart and then it restarts automatically but addon is not installed. When I go back and see the profiles directory I do not see the folder for new addon where as reset of the existing addons are there.

Also, when I decompress the .xpi file and manually created the folder in extensions folder for the addon the addon works prefectly fine.

I checked the error log but nothing there. Below is the link to addon I am struggling with. Any help would be great.

https://addons.mozilla.org/en-US/firefox/addon/format-javascript/

Thanks in advance

I have created my first addon and it is working fine in dynamic mode (pointer in profiles folder to development folder). Then I created the .xpi file by compressing entire content as .zip and replacing it with .xpi. I tried to installed this. Firefox does not install the addon neither it give any error. Firefox shows the regular warning while installing the addons and ask for restart and then it restarts automatically but addon is not installed. When I go back and see the profiles directory I do not see the folder for new addon where as reset of the existing addons are there. Also, when I decompress the .xpi file and manually created the folder in extensions folder for the addon the addon works prefectly fine. I checked the error log but nothing there. Below is the link to addon I am struggling with. Any help would be great. https://addons.mozilla.org/en-US/firefox/addon/format-javascript/ Thanks in advance

Giải pháp được chọn

All files are in the root folder of that archive. You didn't move the files to folders, but added the directory path to the file. I see this file name defaults\preferences\prefs.js

You will have to create a proper directory structure in that archive and move each files to the correct directory.

Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (4)

more options

This forum is for answering questions about using Firefox. For getting help on add-on development and troubleshooting, you should post your query in the add-on development support forum: https://forums.mozilla.org/addons/viewforum.php?f=7

more options

Giải pháp được chọn

All files are in the root folder of that archive. You didn't move the files to folders, but added the directory path to the file. I see this file name defaults\preferences\prefs.js

You will have to create a proper directory structure in that archive and move each files to the correct directory.

more options

Thanks cor-el for the input.

Looks like there was something wrong with my zipping utility. I changed it and now the addon works fine.

thanks for your help

dynamite - thanks for your advice too.

Appreciate the help!

more options

Dear vimu.patel, I had the same problem you posted. Following your post and cor-el answer I could install a .xpi file I have been developing successfully; my zip file was not created correctly.

Thanks