FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 6f71f643 authored by Mr Chris B Mortimer's avatar Mr Chris B Mortimer
Browse files

Merge branch 'thunderbird.xml' into 'master'

Thunderbird.xml

See merge request !112
parents 2aaf01b1 af994f33
No related branches found
No related tags found
1 merge request!112Thunderbird.xml
<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages">
<package id="thunderbird" name="Mozilla Thunderbird" revision="%version%.1" reboot="false" priority="81">
<!-- NB: we've had problems with major version bumps which sometimes change the format of options we add in %WPKGINSTITUTION%-prefs.js.
Thus, we tie that to a version, and please test carefully when upgrading -->
<variable name="version" value="68.10.0" /> <!-- For Maths, set version value in package id thunderbird_config_maths to the same as this VERSION -->
<variable name="prefsversion" value="68" />
<check type="uninstall" condition="versiongreaterorequal" path="Mozilla Thunderbird.*" value="%version%" />
<chain package-id="thunderbird_config_maths">
<condition>
<check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\customise_thunderbird" />
</condition>
</chain>
<!-- Installing 32 bit version while Add-on's all move to 64 bit -->
<install cmd='"%WPKGSOFTWARE%\thunderbird\Thunderbird Setup %version%.exe" -ms' />
<!-- optional institution-specific tweaks -->
<install cmd='cmd /c copy %WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\%WPKGINSTITUTION%-prefs.js-%prefsversion% "%programfiles(x86)%\mozilla thunderbird\defaults\pref\%WPKGINSTITUTION%-prefs.js" '>
<condition>
<check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\%WPKGINSTITUTION%-prefs.js-%prefsversion%" />
</condition>
</install>
<install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\cam.ac.uk.xml" "%programfiles(x86)%\mozilla thunderbird\isp\cam.ac.uk.xml" '>
<condition>
<check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\cam.ac.uk.xml" />
</condition>
</install>
<install cmd='%WPKGSOFTWARE%\wpkg\tools\copydir.cmd "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\dictionaries" "%programfiles(x86)%\mozilla thunderbird\dictionaries"' >
<condition>
<check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\dictionaries" />
</condition>
</install>
<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'>
<exit code="0" />
<exit code="128" />
</upgrade>
<upgrade include='install' />
<remove cmd='taskkill /F /IM thunderbird.exe'>
<exit code="0" />
<exit code="128" />
</remove>
<remove cmd='cmd /c %WPKGSOFTWARE%\wpkg\tools\waitforprocess.cmd Au_.exe' />
<remove cmd='"%programfiles(x86)%\Mozilla Thunderbird\uninstall\helper.exe" /S' />
<remove cmd='cmd /c %WPKGSOFTWARE%\wpkg\tools\waitforprocess.cmd Au_.exe' />
<remove cmd='reg delete HKLM\SOFTWARE\Policies\Mozilla\Thunderbird /v DisableAppUpdate /f'/>
</package>
</packages:packages>
<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages">
<package id="thunderbird_config_maths" name="Maths Thunderbird config settings" revision="%version%" reboot="false" priority="80">
<variable name="version" value="68.10.0" />
<variable name="domain" value="maths.cam.ac.uk" />
<depends package-id="thunderbird" />
<check type="registry" condition="equals" path="HKLM\software\ucam_wpkg.cam.ac.uk\thunderbird_config_maths\version" value="%version%" />
<install cmd='taskkill /F /IM thunderbird.exe'>
<exit code="128" />
</install>
<install cmd='cmd /c copy /y "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\all.js" "%PROGRAMFILES(x86)%\Mozilla Thunderbird\defaults\pref\"' />
<install cmd='cmd /c copy /y "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\mailnews-extra.js" "%PROGRAMFILES(x86)%\Mozilla Thunderbird\defaults\pref\"' />
<install cmd='cmd /c copy /y "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\thunderbird.cfg" "%PROGRAMFILES(x86)%\Mozilla Thunderbird\"' />
<!-- Install the British dictionary add-on -->
<!-- https://addons.mozilla.org/en-US/thunderbird/language-tools/ -->
<install cmd='cmd /c xcopy /Q /I /E /Y "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\british_english_dictionary_marco_pinto-2.81\dictionaries\*" "%PROGRAMFILES(x86)%\Mozilla Thunderbird\dictionaries\"' />
<!-- Install the Addon Compatibility add-on -->
<install cmd='cmd /c xcopy /Q /I /E /Y "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\compatibility@addons.mozilla.org\*" "%PROGRAMFILES(x86)%\Mozilla Thunderbird\extensions\compatibility@addons.mozilla.org\"' />
<!-- Install the MailMerge add-on -->
<install cmd='cmd /c xcopy /Q /I /E /Y "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\mailmerge@example.net\*" "%PROGRAMFILES(x86)%\Mozilla Thunderbird\extensions\mailmerge@example.net\"' />
<!-- Setup some default options -->
<install cmd='cmd /c cscript "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\default_email_%WPKGSUBINSTITUTION%.js"' >
<condition>
<check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\thunderbird\default_email_%WPKGSUBINSTITUTION%.js" />
</condition>
</install>
<!-- Delete the Thunderbird provided desktop icon -->
<install cmd='cmd /c if exist "%PUBLIC%\desktop\Mozilla Thunderbird.lnk" del /q "%PUBLIC%\desktop\Mozilla Thunderbird.lnk"' >
<exit code="any" />
</install>
<!-- Delete the old Mozilla Thunderbird.exe wrapper script file is exists -->
<install cmd='cmd /c if exist "%PUBLIC%\desktop\Mozilla Thunderbird.exe" del /q "%PUBLIC%\desktop\Mozilla Thunderbird.exe"' >
<exit code="any" />
</install>
<!-- Delete any Thunderbird Start Menu shortcuts -->
<install cmd='cmd /c del /q "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\*Thunderbird*"' >
<exit code="any" />
</install>
<!-- Add a Desktop shortcut -->
<install cmd='"%WPKGSOFTWARE%\wpkg\tools\shortcut.exe" /f:"%public%\desktop\Mozilla Thunderbird - Maths.lnk" /a:c /t:"\\%DOMAIN%\scripts\thunderbird\gui\Mozilla Thunderbird.exe" /w:"\\%DOMAIN%\scripts\thunderbird\gui\" /r:1 /d:"Mozilla Thunderbird"' >
<exit code="any" />
</install>
<!-- Add a Start Menu shortcut -->
<install cmd='"%WPKGSOFTWARE%\wpkg\tools\shortcut.exe" /f:"%programdata%\microsoft\windows\start menu\programs\Mozilla Thunderbird - Maths.lnk" /a:c /t:"\\%DOMAIN%\scripts\thunderbird\gui\Mozilla Thunderbird.exe" /w:"\\%DOMAIN%\scripts\thunderbird\gui\" /r:1 /d:"Mozilla Thunderbird"' >
<exit code="any" />
</install>
<!-- Add a second Start Menu shortcut to pass the argument -profilemanager -->
<install cmd='"%WPKGSOFTWARE%\wpkg\tools\shortcut.exe" /f:"%programdata%\microsoft\windows\start menu\programs\Mozilla Thunderbird Profile Manager.lnk" /a:c /t:"\\%DOMAIN%\scripts\thunderbird\gui\Mozilla Thunderbird.exe" /p:"-profilemanager" /w:"\\%DOMAIN%\scripts\thunderbird\gui\" /r:1 /d:"Mozilla Thunderbird Profile Manager"' >
<exit code="any" />
</install>
<!-- Add a third Start Menu shortcut to pass the argument -delmaths. This will rename the Maths profile and remove the Maths entrie(s) from the profile.ini file -->
<install cmd='"%WPKGSOFTWARE%\wpkg\tools\shortcut.exe" /f:"%programdata%\microsoft\windows\start menu\programs\Mozilla Thunderbird Delete `Maths` Profile.lnk" /a:c /t:"\\%DOMAIN%\scripts\thunderbird\gui\Mozilla Thunderbird.exe" /p:"-delmaths" /w:"\\%DOMAIN%\scripts\thunderbird\gui\" /r:1 /d:"Mozilla Thunderbird Delete `Maths` Profile"' >
<exit code="any" />
</install>
<install cmd='reg add HKLM\software\ucam_wpkg.cam.ac.uk\thunderbird_config_maths /t reg_sz /v version /d %version% /f' />
<upgrade include='remove' />
<upgrade include='install' />
<remove cmd='taskkill /F /IM thunderbird.exe'>
<exit code="0" />
<exit code="128" />
</remove>
<remove cmd='cmd /c del /q "%PROGRAMFILES(x86)%\Mozilla Thunderbird\defaults\pref\all.js"' >
<exit code="1" /> <!-- if file does not exist -->
</remove>
<remove cmd='cmd /c del /q "%PROGRAMFILES(x86)%\Mozilla Thunderbird\defaults\pref\mailnews-extra.js"' >
<exit code="1" /> <!-- if file does not exist -->
</remove>
<remove cmd='cmd /c del /q "%PROGRAMFILES(x86)%\Mozilla Thunderbird\thunderbird.cfg"' >
<exit code="1" />
</remove>
<remove cmd='cmd /c rmdir /s /q "%PROGRAMFILES(x86)%\Mozilla Thunderbird\dictionaries\"' >
<exit code="1" />
</remove>
<remove cmd='cmd /c rmdir /s /q "%PROGRAMFILES(x86)%\Mozilla Thunderbird\extensions\compatibility@addons.mozilla.org\"' >
<exit code="1" />
</remove>
<remove cmd='cmd /c rmdir /s /q "%PROGRAMFILES(x86)%\Mozilla Thunderbird\extensions\mailmerge@example.net\"' >
<exit code="1" />
</remove>
<remove cmd='cmd /c del /q "%PUBLIC%\desktop\Mozilla Thunderbird.exe"' >
<exit code="1" />
</remove>
<remove cmd='cmd /c del /q "%PUBLIC%\desktop\Mozilla Thunderbird - Maths.lnk"' >
<exit code='any' />
</remove>
<remove cmd='cmd /c del /q "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\*Thunderbird*"' >
<exit code="any" />
</remove>
<remove cmd='reg delete HKLM\software\ucam_wpkg.cam.ac.uk\thunderbird_config_maths /f'>
<condition>
<check type='registry' condition='exists' path='HKLM\software\ucam_wpkg.cam.ac.uk\thunderbird_config_maths' />
</condition>
</remove>
</package>
</packages:packages>
......@@ -25,6 +25,7 @@ variable_names_to_skip:
repo_var_names:
- WPKGSOFTWARE
- WPKGINSTITUTION
- WPKGSUBINSTITUTION
- WPKGSHAREBASE
- WPKGLOGDIR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment