Sorry, the method name is InstallTrigger.startSoftwareUpdate()
-Dan Veditz
Daniel Veditz wrote:
>
> Recent builds have some MIME-type handler problems; in broken builds the
> only way to start an XPInstall is with a snippet of javascript:
>
> InstallTrigger.startSoftwareInstall("file://blah/blah")
>
> you can use any valid URL as the argument.
>
> -Dan Veditz
>
> Sean Su wrote:
> >
> > I believe that you need to add the following mime type to your server:
> > application/x-xpinstall
> >
> > Elizabeth Bartmess wrote:
> >
> > > I'm trying to get xpi working through the web. When I click on the link
> > > to barley.xpi on the Creating New Packages for Mozilla page, it brings
> > > up the install dialog. However, if I rightclick on barley.xpi and save
> > > it to a directory, and then create a html page that links to it, and
> > > save both to a web directory, and then try to access it via the web, I
> > > get a bunch of junk - it appears to be trying to read the xpi file,
> > > rather than install it.
> > >
> > > The same thing happens if I copy over the source of the Creating New
> > > Packages file and click on that to get to the .xpi file, although it
> > > works when I access it through the original.
> > >
> > > Any guesses as to what I'm not doing correctly?
> > >
> > > Thanks
> > >
> > > Elizabeth