I've tried to solve this problem by using this code in
the installstion callback routine :

function postInstall( url, status )
{


netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    Components.manager.autoRegister(Components.manager.NS_Script, null);
}

But mozilla crashes on first statement. Without this one I got exception
about
access to XPConnect ( even if I put this statement outside the function ).

"Tobias Trelle" <[EMAIL PROTECTED]> wrote in message
95mg5s$[EMAIL PROTECTED]">news:95mg5s$[EMAIL PROTECTED]...
> 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/
>



Reply via email to