Doing a automatic upgrade of thunderbird 3.x to 10.x

Doing the integrator update automatically

1. Create a new version of the integrator for TB v3.1.x

<?xml version="1.0"?>
<!DOCTYPE RDF>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:em="http://www.mozilla.org/2004/em-rdf#"
  xmlns:NC="http://home.netscape.com/NC-rdf#">
  <Description about="rdf:#$Iwquq2"
    em:id="{3550f703-e582-4d05-9a08-453d09bdfdc6}"
    em:minVersion="3.0"
    em:maxVersion="3.1.*" />
  <!-- em:optionsURL="chrome://sogo-integrator/content/general/preferences.xul" -->
  <Description about="urn:mozilla:install-manifest"
    em:name="Inverse SOGo Integrator"
    em:id="sogo-integrator@inverse.ca"
    em:version="3.109a"
    em:description="A SOGo integration plugin for Thunderbird and Lightning"
    em:iconURL="chrome://sogo-integrator/skin/sogo.png"
    em:creator="Inverse &lt;support@inverse.ca&gt;"
    em:developer="Inverse &lt;support@inverse.ca&gt;">
    <em:targetApplication resource="rdf:#$Iwquq2"/>
    <em:updateURL>https://sogo.company.com/plugins/tbupdate.php</em:updateURL>
  </Description>
</RDF> 

2. Push this new version via the normal integrator upgrade path (update.php)

3. Create a php script to return the update description with the correct location to download the V10 integrator

<?php
  header("Content-type: text/xml; charset=utf-8");
  echo ('<?xml version="1.0"?>' . "\n");
?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/2004/em-rdf#">
<r:Description about="urn:mozilla:extension:sogo-integrator@inverse.ca">
    <updates>
    <r:Seq>
    <r:li>
    <r:Description>
        <version>10.0</version>
        <targetApplication>
            <r:Description>
            <id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</id>
            <minVersion>10.0</minVersion>
            <maxVersion>10.*</maxVersion>
            <updateLink>https://sogo.company.com/downloads/extensions/sogo-integrator-10.0-company.xpi</updateLink>
            </r:Description>
        </targetApplication>
    </r:Description>
    </r:li>
    </r:Seq>
    </updates>
</r:Description>
</r:RDF>

4. Finally do a manual update of TB 3.1.x to TB 10 ESR

TB-upgrade-3-to-10 (last edited 2012-02-22 05:34:04 by AndreSchild)