Re: app/version detection

Daniel Veditz <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Shahin Saneinejad wrote:

> I want to detect the name of the application installing my xpi (e.g. 
> Firefox, Thunderbird, Mozilla, etc.) and its version number.  An 
> alert('buildID'); in my install.js prints 0, and I think buildID formats 
> vary across applications.

buildID should give you the Gecko build number (0 in dev builds, just like
the browser window title). That's not much help to you, it's more there just
in case there were XPInstall engine feature differences (or bugs) that
scripts needed to work around.

> I'd rather not rely on any auxiliary JS libraries like Quicktools or 
> JSLib.  Any ideas?

unfortunately no.  File an RFE to expose the user agent perhaps? This might
be worth getting into Firefox 1.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.