FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
thunderbird.xml 1.97 KiB
Newer Older
Dr Adam Thorn's avatar
Dr Adam Thorn committed
<?xml version="1.0" encoding="UTF-8"?>
<packages>

<package id="thunderbird" name="Mozilla Thunderbird" revision="%version%.1" reboot="false" priority="0">
Dr Adam Thorn's avatar
Dr Adam Thorn committed

	<!-- NB: we've had problems with major version bumps which sometimes change the format of options
			 we add in chemistry-prefs.js. Thus, we tie that to a version, and please test carefully when
       upgrading -->

 <variable name="version" value="68.7.0" />
 <variable name="prefsversion" value="68" />
 <check type="uninstall" condition="versiongreaterorequal" path="Mozilla Thunderbird.*" value="%version%" />
Dr Adam Thorn's avatar
Dr Adam Thorn committed

  <install cmd='"%software%\thunderbird\Thunderbird Setup %version%.exe" -ms' />
  <install cmd='cmd /c copy "%software%\thunderbird\chemistry-prefs.js-%prefsversion%" "%programfileswpkg%\mozilla thunderbird\defaults\pref\chemistry-prefs.js" '/>
Dr Adam Thorn's avatar
Dr Adam Thorn committed
  <install cmd='cmd /c copy "%software%\thunderbird\cam.ac.uk.xml" "%programfileswpkg%\mozilla thunderbird\isp\cam.ac.uk.xml" '/>
  <install cmd='%software%\wpkg\tools\copydir.cmd "%software%\thunderbird\dictionaries" "%programfileswpkg%\mozilla thunderbird\dictionaries"' />
  <install cmd='reg add HKLM\SOFTWARE\Policies\Mozilla\Thunderbird /t reg_dword /v DisableAppUpdate /d 1 /f'/>

  <!-- although an in-place upgrade works, Thunderbird then insists on a reboot
       the next time one tries to start Thunderbird -->
   <upgrade cmd='taskkill /F /IM thunderbird.exe'>
Dr Adam Thorn's avatar
Dr Adam Thorn committed
    <exit code="0" />
    <exit code="128" />
  </upgrade>
Dr Adam Thorn's avatar
Dr Adam Thorn committed

  <remove cmd='taskkill /F /IM thunderbird.exe'>
    <exit code="0" />
    <exit code="128" />
  </remove>

  <!-- helper.exe spawns children, and "start /wait" doesn't help -->
  <remove cmd='cmd /c %software%\wpkg\tools\waitforprocess.cmd Au_.exe' />
  <remove cmd='"%programfileswpkg%\Mozilla Thunderbird\uninstall\helper.exe" /S' />
  <remove cmd='cmd /c %software%\wpkg\tools\waitforprocess.cmd Au_.exe' />
  <remove cmd='reg delete HKLM\SOFTWARE\Policies\Mozilla\Thunderbird /v DisableAppUpdate /f'/>
Dr Adam Thorn's avatar
Dr Adam Thorn committed

</package>
</packages>