Chrome Extension - Invalid Package. Details:Can't unzip the extension

Srikanth Rayabhagi picture Srikanth Rayabhagi · Nov 2, 2011 · Viewed 28.7k times · Source

I worked on a chrome extension and uploaded it to chrome webstore and everything went well, I installed it on my Mac and on my Ubuntu machines in chrome it worked fine and installed. But when I try it on Windows machines, after download it popups a error message saying "Invalid Package, Can't unzip the extension".

Can any one tell me why or what might be the cause for this OS specific issue. Does it have anything to do with the permission or anything with respective folder name or content? The folder name or the extension name don't have any special characters and the previous version was fine.

Thanks in advance.

Answer

Eneas Gesing picture Eneas Gesing · Mar 21, 2012

This is because there a file inside the package with a Windows invalid character in name or there a corrupted file. In my case I've tried to download the CouponsHelper extension and this error was displayed too.

I downloaded the CRX file manually and opened it with 7Zip. In the folder had a file named Icon. When I try to extract using 7Zip an error occurs too.

Note on the screenshot that there an invalid char in Icon file and that it is zero sized (possibly corrupted).

Screenshot of 7Zip