My FireFox extension has an external dll dependency for functioning. So I include that dll inside my xpi and copy that dll to the right directory in first run. But it does not work for me because I found my own dll (written in XPCOM C++) expects to see that external dll during install. So every time I have to manually put the external dll in the right directory, but that is not convenient for a user.
Is there any way that I can combine copying external dll and installing xpi into one package and have an automatic install?