XML
  Home arrow XML arrow Creating an XUL App Installer
Web Buyers Guide
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

Creating an XUL App Installer
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-05-22

    Table of Contents:
  • Creating an XUL App Installer
  • Getting Started
  • The Installation Process
  • Packaging Your Files

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Creating an XUL App Installer
    (Page 1 of 4 )

    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.

    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.

    More XML Articles
    More By Dan Wellman


       · Hi everyone,Hope you enjoy this article, again this is one of the easier aspects...
     

    XML ARTICLES

    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE
    - UI Design with Java and XML Toolkits
    - Displaying ADO Retrieved Data with XML Islan...
    - Widget Walkthrough
    - Introduction to Widgets
    - The Why and How of XML Data Islands
    - Creating an XUL App Installer
    - Overlays in XUL
    - Skinning Your Custom XUL Applications


     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway