Re: Question to InstallVersion, updating plugins ... !
HJ <[email protected]> Fri, 29 Oct 2004 00:01:10 -0600
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Stefan Frasch wrote: > Hi ! > > I have written a .xpi for installing my plugin. All works fine, I used a > PLID, handle the First-Install-Problem... > > But now I want to update my plugin with new releases. > > I have read the xpinstall doc (.pdf) but I don't understand what I have to > do with "InstallVersion", InstallTrigger.compareVersion() and so on. > > What code must placed in Javascript (webpage) and what into my install.js. > > Are there anwhere more examples ? > > Thanks a lot > > .stefan Stefan, InstallTrigger.compareVersion() always returns -5 in current mozilla versions so you should't use that. Can you define plugin for me (Mozilla add-on, Mozila Firefox extension, or a real plugin)? Note: you might have access to the version info for your add-on / extension. That can be used like this: http://foo.bar.org/update.html?currentVersion=somenumber I hope this helps, good luck, /HJ