XML
  Home arrow XML arrow Page 2 - Creating an XUL App Installer
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  
Mobile Linux 
App Generation ROI 
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
     
     
    ADVERTISEMENT


    Creating an XUL App Installer - Getting Started


    (Page 2 of 4 )

    I'll be using the application created in the last XUL series as an example for this installer. If you're not, you'll need to adjust the file names and stuff accordingly, but the basic premise should be the same.

    You will know from looking at the source files of Mozilla that most of the files needed to run any of the applications of the Mozilla suite are packed into JAR, or Java Archive, files.  These archives then contain the standard directory structure of working XUL applications, making use of content, locale and skin folders.  This means that your XPI file can be made up of just two files: the JAR file containing all of the XUL, RDF and other associated files, and the special JavaScript file that controls the install process. 

    This JavaScript file must be called install.js and is a surprisingly small and simple file when used with relatively small and simple applications. We will look at how to construct this file now.  As usual when working with XUL, you'll need nothing more complex than a text editor at this point.

    First, we need to set a few variables:

    appName = "XUL Edit Lite";
    author = "Dan Wellman";
    chromeName = "interface";
    version = "1.0";

    These variables represent information also found in the contents.rdf file located with your main application file.  Next, create a variable to hold the name of the file that will be copied to the user's system:

    file = "xuleditlite.jar";

    Finally, we can save time later by creating variables to hold the information to be written to the installed-chrome file:

    contentPath = "content/"+chromeName+"/";
    localePath = "locale/en-US/"+chromeName+"/";

    More XML Articles
    More By Dan Wellman


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

    XML ARTICLES

    - 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
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek