XPInstall API Reference:InstallVersion Object
From MDC
[edit] InstallVersion
You use InstallVersion objects to contain version information for software.
[edit] Overview
This object and its methods are used both when triggering a download, to see whether a particular version needs to be installed, and when installing the software.
The init() method associates a particular version with an InstallVersion object, the toString() method converts versions in various formats to a string, and the compareTo() method compares these string and indicates the relationship between the two versions. Each of the version parameters is also available as a separate property of the InstallVersion object.