Addon cannot be installed by an error of not be able to modify the needed file

2.1k views Asked by At

I developed an addon and it run perfectly on my PC. But when I send it to install on our client, it got an error that say something like this "Your addon cannot be installed because Firefox couldn't modify the needed file".

Anyone know what the reason might be?

3

There are 3 answers

0
Nickolay On

Sounds like bug 636268: too long paths to add-on's files. To verify, get the client to create a scratch profile in a directory with a short path, like C:\temp-profile and try installing the extension there.

2
jakub.g On

Does client have Windows or UNIX-like system?

Looks like permission problem with Firefox profile folder (it is read-only). Look here for further details.

0
leegor On

Thanks guys! I tried all above suggestions but I finally found the problem was the app ID in package.json was too long, I changed from jid0-1Z6ceODTjCn4TmgrrAo3ARAo5J0 to jid1-EGBMRh2YNRZEIg and then everything work fine. Someone has this problem then can give it a try.