Home arrow XML arrow Creating an XUL App Installer
XML

Creating an XUL App Installer


It is surprisingly easy to package and create an installer for a XUL application that you've written. Anyone who uses your application will thank you for it; it will save them a lot of time and effort. Keep reading to see how it's done.

Author Info:
By: Dan Wellman
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
May 22, 2006
TABLE OF CONTENTS:
  1. · Creating an XUL App Installer
  2. · Getting Started
  3. · The Installation Process
  4. · Packaging Your Files

print this article
SEARCH DEVARTICLES

Creating an XUL App Installer
(Page 1 of 4 )

You may have just finished working through my previous XUL tutorial, or you may have been creating applications for a while now, and find yourself in a position where you have a collection of files that when used together form a working application. You will recall that in order to use a XUL application, be that within the Mozilla browser, or as a standalone application, you need to modify certain core Mozilla files.  This may be fine for you, but what about your market?  Do you think people will want to download a collection of files, set up directories for them and then modify the Mozilla source files?

It's unlikely that many people will, unless your application is targeted solely at developers that actually enjoy doing that kind of thing of course!  What you need is a method of packaging all of the files needed to run your application into effectively one file that can be downloaded, double-clicked and then perform the install itself, putting the right files in the right places and updating the relevant Mozilla source files automatically.

Thankfully, XUL does provide a method of doing what we want natively; it's called XPInstall which stands for Cross-Platform Install. The system involves the use of a JavaScript file that controls the copying of files to their destinations and the updating of the installed-chrome text file that forms part of the chrome registry.  XPInstall files, that have an XPI extension, are typically deployed by a web page, which you navigate to using Mozilla and install by clicking on a link rather than by downloading an executable setup launcher. If you have downloaded an XPI file, you can also install it by dragging it into an instance of the Mozilla browser window.

Possibly the only thing that it isn't possible for the install script to do is edit the environment variable, which is a shame, because it means that the application in this case isn't completely automated. This can be achieved in other ways.  Additionally, on systems successfully configured with XULRunner, users may not need this environment variable set anyway (I don't know in all honesty as I haven't tried myself).  XULRunnner is a project aimed at making applications written in XUL run outside of Mozilla so that Mozilla doesn't even need to be installed to run XUL applications.  It's still in its early stages at this point and can be tricky to configure, but it will improve.  XUL programs designed to run within Mozilla don't have the environment variable drawback.


blog comments powered by Disqus
XML ARTICLES

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- Using Regions with XSL Formatting Objects
- Using XSL Formatting Objects
- More Schematron Features
- Schematron Patterns and Validation
- Using Schematron
- Datatypes and More in RELAX NG
- Providing Options in RELAX NG
- An Introduction to RELAX NG
- Path, Predicates, and XQuery
- Using Predicates with XQuery
- Navigating Input Documents Using Paths
- XML Basics
- Introduction to XPath

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials