From 4a0faf749c90f7bbb487b6d800b322f2c970fa57 Mon Sep 17 00:00:00 2001 From: Adam Thorn <alt36@cam.ac.uk> Date: Fri, 14 Feb 2020 13:59:41 +0000 Subject: [PATCH] Improve check condition on Thunderbird --- thunderbird.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thunderbird.xml b/thunderbird.xml index 28e30057..7dda1bb3 100755 --- a/thunderbird.xml +++ b/thunderbird.xml @@ -9,7 +9,8 @@ <variable name="version" value="68.5.0" /> <variable name="prefsversion" value="68" /> - <check type="uninstall" condition="exists" path="Mozilla Thunderbird %version%.*" /> + + <check type="uninstall" condition="versiongreaterorequal" path="Mozilla Thunderbird.*" value="%version%" /> <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" '/> -- GitLab