[Project_owners] Check for extension and uninstall at upgrade

Brian King brian at mozdev.org
Tue Jan 27 15:44:47 EST 2004

On 27.1.2004 14:12, Jawahar Swaminathan wrote:

> Is there a way I can check for the existence of a previous installation 
> of an extension
> in mozilla during installation, and remove the previous extension before 
> installing the
> new one. Basically it would avoid duplicate installations of my toolbar 
> (which show up in a series on the same bar).
> I am sure this can be done by calling jslib from the install.js script, 
> but I am not sure how to go about this. Please let me have some snippet 
> of code if you already do this so I can try and make sense of it and try 
> it out.

I know the FirebirdHelp install script checks for installed versions ... 
you could look at it and try to see if it meets your needs:


Brian King

More information about the Project_owners mailing list