Re: InstallTrigger.compareVersion() always returns -5
HJ <[email protected]> Mon, 25 Oct 2004 01:10:09 -0600
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
HJ wrote: > Hi, > > No matter what I do, InstallTrigger.compareVersion(string componentName, > string componentVersion) always returns -5 for me. > > This worked before, with the same lines of javascript code, but now > fails in more recent builds (but I don't know when exactly this started > to fail for me because I have been away for 5 months or so). > > Is there anything that I can use, for testing purposes, something that > should be registered at al times? > > > My code looks like this: > > var ass = Components.classes["@mozilla.org/appshell/appShellService;1"] > .getService(Components.interfaces.nsIAppShellService); > var diffLevel = > ass.hiddenDOMWindow.InstallTrigger.compareVersion(componentName, > componentVersion); > > A bit of help would be fun and appreciated :-) > > TIA, > /HJ I checked mozver.dat and noticed that my files are registered, so what the F is this thing complaining about? P.s. mozver.dat is 263KB can that be a problem? Btw, is there a way of 'cleaning' this file without any risk? /HJ