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
_______________________________________________
Mozilla-xpinstall mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpinstall

Reply via email to