You need to restart the browser in order for the component to be
registered. We do not expose an interface in XPInstall to explicitly
register a newly installed component. It is true that this feature
would be useful for exactly the case you have cited. I'll let Dan
Veditz comment in greater detail on the latter.
~Samir
Tobias Trelle wrote:
> X-Posted to netscape.public.mozilla.xpcomn
> netscape.public.mozilla.xpinstall
> Hi,
>
> is it possible to install an XPCOM component and use it
> on-the-fly WITHOUT restarting the browser? Maybe there is
> some magic interface one can implement?
>
> I prepared a test case based on the scriptable npsimple plug-in at
> http://www.cycosys.com/tt/nn6-plug/
>
> The install log looks fine but I can't use the plug-in without
> a browser restart:
>
> ----------------------------------------------------------------------------
> ---http://www.cycosys.com/tt/nn6-plug/npsimple.xpi -- 02/05/2001 16:06:41
> ----------------------------------------------------------------------------
> ---
>
> npsimple [Build 1.0.0.1]
> ------------------------
>
> ** initInstall: npsimple [Build 1.0.0.1]: 1.0.0.1
> ** created folder object: Components
> ** Installing ... Folder: Components Component: npsimple.dll err: 0
> ** Installing ... Folder: Components Component:
> nsISimplePluginInstance.xpt err: 0
> [1/2] Installing: E:\net\beonex06\components\npsimple.dll
> [2/2] Installing: E:\net\beonex06\components\nsISimplePluginInstance.xpt
>
> Install completed successfully
> ** Install complete.
> Finished Installation 02/05/2001 16:06:43
>
> In the good old days of SmartUpdate I was able to install a
> scriptable plug-in and use it without restarting the browser.
> Is XPI making a step backwards?
>
> F'up2 netscape.public.mozilla.xpcom
>
>
> TIA - Regards, Tobias Trelle
> --
> CyCo Systems GmbH & Co. KG >>> http://www.cycosys.com/