Skip to content
⌘ NSIS Forum Archive

Script to install IE and Firefox extensions

4 posts

stopasking#

Script to install IE and Firefox extensions

I am new at this. Can someone help me write or find a script to install a plugin for Internet Explorer and Firefox (a cab and xpi file).

Thanks.
ionut_y#
Re: Script to install IE and Firefox extensions

For Firefox just copy xpi files into \Program Files\Mozilla Firefox X.X\extensions folder then restart FF
stopasking#
Thanks.

How do I find the Firefox path and detect if Firefox is even installed?

What about IE?
Animaether#
read in this value from the registry:

ReadRegStr $0 HKLM "SOFTWARE\Mozilla\Mozilla Firefox" "CurrentVersion"
Then use the result from that to read the install dir:

ReadRegStr $1 HKLM "SOFTWARE\Mozilla\Mozilla Firefox\$0\Main" Install Directory"
You can also point to your own extension explicitly:
The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.