How to distribute XPCOM component via XPI for FireFox 3?
Question
I wrote an XPCOM component and an extension that uses it. XPCOM loads arbitrary DLL for its purposes.
How can I include XPCOM and DLL into XPI package?
Solution
I was able to find absolute path to my DLL via IExtensionManager and IInstallLocation, then load it via LoadLibrary().
- put DLL near XPCOM in my.xpi/components/
- figure out the path to extension via IExtensionManager and IInstallLocation
- LoadLibrary()
- profit
OTHER TIPS
XPI is basically a zip file, which includes the DLL, among other things See https://developer.mozilla.org/En/Creating_XPI_Installer_Modules
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow