[Project_owners] Testing whether XPI install script is runningonMozilla or Firebird...

Roland Mainz roland.mainz at nrubsig.org
Sun Feb 8 18:30:35 EST 2004


> "Laeb (hotmail)" wrote:
> 
> > Is there a way (or better: has someone example code :) to
> > test whether
> > an XPInstall script is being run by Mozilla (Suite) or
> > FireBird/Thunderbird ?
>
> Try this:
> 
> if (!File.exists(getFolder(getFolder('Chrome'), 'browser.jar'))) {
>  alert('is not Mozilla Firebird');
>  cancelInstall(err);
> }

Nice... but I need to do the reverse - check whether the Mozilla Suite
is running or not. Just testing for FireBird won't work for
SunBird/Thunderbird/AnyOtherGREBasedBird ... ;-(

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)


More information about the Project_owners mailing list