Each .xpi ("zippy") is a stand-alone install, so any managing of multiple 
installs needs to be handled outside. In the case of Netscape 6, for 
example, the installer stub handled this, and so did the SmartUpdate site 
before they shut it down in the layoffs.

You can take two approaches. The simplest is to duplicate the dnd_common.jar 
in each of the installs. It won't hurt to install and register it multiple 
times, although it will bulk up the download for folks who install more than 
one package.

The other is to write some site scripting that will keep track of what 
people have clicked on, perhaps by having them click checkboxes before 
hitting a final "Install" button. You can't do this by having simple links 
to the .xpi files, you'll have to use the InstallTrigger methods to launch 
the selections in a bunch.

You'll want to use InstallTrigger.install(pkgs [, cb]);

where pkgs is an object:

var pkgs = { "Spellviewer": "http://dndtools.mozdev.org/spellviewer.xpi";,
              "Bookmarks"  : "http://etc";
            }

and cb is an optional callback function that will be called for each install 
package in case you want to know/display status

function cb (url, status) { alert(url +": " + status); }

-Dan Veditz

Eric Plaster wrote:

> Well, that's not quiet what I want to do.  Let me try and explain a 
> little more.
> 
> On my web page, I'll have a list of applications that they can install 
> like this:
> 
> Choose what application you want to install:
> 
>     * Spellviewer <http://dndtools.mozdev.org/>
>     * Bookviewer <http://dndtools.mozdev.org/>
>     * PPC <http://dndtools.mozdev.org/>
> 
> All three of these are seporate applications.  All three of them need at 
> least two xpi's to be installed.  For example, Spellviewer will need these:
> 
>     * spellviewer.xpi
>     * dnd_common.xpi
> 
> And Bookviewer will need these:
> 
>     * bookviewer.xpi
>     * dnd_common.xpi
> 
> Now setting up the web page to do this I haven't done yet...  But that 
> isn't really my question.  My question is, I want all the jar's to be 
> installed in one directory like this: 
> 
>     chrome
>         dndtools
>             spellviewer.jar
>             dnd_common.jar
> 
> It is more of an orginizational thing really, but this is what I'm 
> looking for.
> 
> 
> Myk Melez wrote:
> 
>> I think what you want to do is install multiple applications from a 
>> single XPI, not to install multiple XPIs.  Doing this should be as 
>> simple as zipping the applications together in one archive whose 
>> install.js file does the same installation procedure for each 
>> application.
>>
>> -myk
>>
> 
> -- 
> ----
> Eric Plaster                    Qlogic
> Senior Software Engineer        (952)932-4000
> [EMAIL PROTECTED]         http://www.qlogic.com
> 
> 


Reply via email to