Turn on Updates For Your Firefox Extensions.  
  May 11, 2005 filed under Tutorials, Tools  

If you want your customers/users to keep up with the latest version of your extensions then youre at the right place. The easiest way to enable firefox extension updates is by using the sample update.rdf file or using the update generation tool below.

DISCLAIMER: You are following this tutorial at your own risk. If anything blows up do some meditation before assigning blame.

  • Copy the following snippet of code into a file called update.rdf and place it on your website. The location should be same as specified in your updateURL in the install.rdf file for your extension. For example the following is my update.rdf that specifies the details for one of my extensions.

<?xml version="1.0"?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

<r:Description about="urn:mozilla:extension:{5792C231-1F24-4037-974A-5BA26A50C586}">

  You need to update the extension GUID that starts with {57... with your own GUID, updateLink and version numbers in 2 places. Thats it! If you subscribe to the Lazy Programmers credo just use the following form to generate your update.rdf contents. This tool only generates the update.rdf for one extension. If you want more then repeat the <r:Description> stanza for other extensions. Lather and rinse.  
  Generate contents for your update.rdf file  
Type your Extensions Version Number
e.g. 0.2:
Type your Extensions Update Link
e.g. http://mysite.com/myext.xpi:
Type your Extensions GUID
e.g. {2721C70-V459-4316-AE29-209C8690E992}



  Table Of Contents
  >>Contact Us