Your best examples will be those at mozdev.org.  Try downloading (or 
checking out from CVS) some of the XPIs there and see how they do it.

-myk


Eric Plaster wrote:
> 
> I'm working on a project that is really several applications.  I want to 
> make several xpi's and allow the user to install which ever app he 
> wants.  The problem is, I want to put all the jar files under a common 
> directory.  For example:
> 
>     chrome
>         dndtools
>             spellviewer.xpi
>             common.xpi
>             ppc.xpi
>             ...
> 
> How do I write the install.js?  Everything I tried seemed to be wrong. 
>  The document on xpinstall on netscapes site was good at explaining the 
> API, but short on examples.  I've included the install.js for 
> spellviewer.  If someone could tell me how to get it installed in a 
> "dndtools" directory and be able to launch it with "./mozilla -chrome 
> chrome://spellviewer/content", I would be most greatfull.
> 
> BTW, being able to register it as "dndtools/spellviewer" would also be 
> very helpfull to avoid name conflicts.
> 
> 
> -- 
> ----
> Eric Plaster                    Qlogic
> Senior Software Engineer        (952)932-4000
> [EMAIL PROTECTED]         http://www.qlogic.com
> 
> install.js
> 
> Content-Type:
> 
> application/x-javascript
> Content-Encoding:
> 
> 7bit
> 
> 


Reply via email to