Auto Install Script For Firefox Extensions.  
  March 16 , 2005  
     
  Introduction  
 

If you are tired of opening up Firefox and doing a File Open to install your extension during development then use this script to automate the installation. You will do this after running the build script as outlined in the Firefox extension tutorial. The script does the installation and brings up Firefox. Assumptions are that your install script is at the same level as the build and extract scripts.

DISCLAIMER: You are following this tutorial at your own risk. If anything blows up do some meditation before assigning blame.

 
     
     
  Installation Script  
 
  • Copy the following snippet of code into a file called install.bat under a directory called c:\firefoxdev. Run it as install <foldername>, e.g. install myextension. Make sure to change ff path if Firefox is not under c:\Program Files\Mozilla Firefox.
 
     
 


set x=%cd%\%1
set ff="c:\Program Files\Mozilla Firefox"
cd %x%
copy %1.xpi %ff%
cd %ff%
%ff%\firefox -install-global-extension %1.xpi
del %1.xpi
cd %x%
cd ..
%ff%\firefox
 

 
     
     
     
     
     

 

   
   
   
   
   
  Table Of Contents
  >>Introduction
  >>Installation Script
   
  Links
  >>Contact Us