We must have group propagation problems, I haven't seen the original posts
to which you're responding.
You are right, [Install.]execute() is used to launch a native executable
that is packaged within the .xpi archive. File.execute() can be used to
launch a native executable that already exists on the users disk (for
example, the regsvr32 utility on windows to register an OLE component).
For javascript it's a bit tricky since the install script runs in a sandbox
without access to the objects on a typical web page, and because of
threading issues we can't (yet) allow the script to open a window which
could do this kind of thing.
Doing the javascript in a callback on the webpage that launched the install
is about the only option for now, which is unfortunate because it means the
.xpi archive does not stand alone as a complete installer.
-Dan Veditz
Mark B Baldwin wrote:
>
> David,
>
> Perhaps someone can correct me, but to the best of my knowledge the
> execute() method is used to execute an application (or third party
> installer) within your .jar file.
>
> For example, we want our application to run immediately after it has been
> installed, so we call execute().
>
> The install.js script will be executed immediately (I believe) from your
> trigger script. with something like:
>
> function download()
>
> xpi["myinstall.jar"] = "file:////My Computer/C
> Drive/Inetpub/wwwroot/install/myinstall.jar";
>
> numxpi ++;
>
> InstallTrigger.install(xpi,statusCallback);
>
> }
>
> As I'm new to this some people may be able to improve upon this explanation.
>
> Cheers,
>
> Mark
>
> "David McNamara" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > I need to be able to execute a certain junk of JavaScript after the XPI
> > has been install (by install.js).
> > I've tried using the execute() function, but could not get it to work.
> > Has anyone else been successfull with with this function.
> > Specifically I need to create a Bookmark/Task Item after the installation.
> >
> > Thanks,
> > David McNamara.
> >