Re: Installation of xpcom components.
Daniel Veditz <[email protected]> Sun, 13 Mar 2005 23:04:22 -0800
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Ajit Web wrote: > Hi, > Does XPINSTALL register XPCOM components? If 'yes' can anyone > explain with an example. Normally no, it leaves a marker for registration to happen on the next start of the browser. You can force it, however, by using the command refreshPlugins(true); Unlike nearly everything else, do this *AFTER* performInstall() returns a SUCCESS status. Prior to performInstall() your component isn't actually installed so refreshing early won't work. If performInstall() returns 999 then a browser restart is needed to replace an in-use file. In that case refreshing the components and plugins would not be wise. -Dan Veditz