3

Some unzip tools enable to extract xpi files.

I'd be glad to know if there's a program which also enables to compress files directly to xpi.

Thank you.

2 Answers 2

3

xpi is just zip. Just zip your files normally, and rename your archive.zip with the right extension, to archive.xpi.

0
3

An XPI (XPInstall) file is simply a ZIP file containing the extension files, with the install.rdf file at the root of the ZIP.

Just create zip file and then change its extension to xpi.

Update:

To do it directly, you will need to add a Registry entry for custom context menu item (say Compress to XPI). It will invoke a predefined .bat file which takes selected files as input and generates xpi for that.

After doing this all you need to do is, just select all files which you want to pack in xpi and from right click menu select Compress to XPI and you will have your xpi file.

3
  • Thank you. I appreciate your help. I meant to ask if it was possible to directly compress to xpi from the context menu. I guess I wasn't clrear enough.
    – Yaron
    Sep 22, 2012 at 13:29
  • @Yaron I updated my ans. Have a look it might help... Right now I'm on mobile, ask If you need elaborate Instructions
    – Ankit
    Sep 22, 2012 at 21:37
  • It's been a while. I guess I wasn't notified of your edited reply. I'd be grateful if you could elaborate on the .bat file.
    – Yaron
    Mar 25, 2014 at 21:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .