My application installs my Firefox add-on (by copying an my.xpi to [FF_inst_dir]\extensions). This application interact with my FF add-on. This application periodically has updates (.xpi with new version). When my application is updating it does next:
- Remove folder and content [FF_inst_dir]\extensions\MyExtension
- Copy new my.xpi to [FF_inst_dir]\extensions
However, when I restart FF I see:
- FF ask me about install add-on. I agree.
- FF remove my.xpi (it's ok)
- FF remove folder and content [FF_inst_dir]\extensions\MyExtension I think that FF try to remove old plugin.
Thus, I havn't installed plugin.
How it can be installed correct?