diff --git a/thunderbird.xml b/thunderbird.xml
index 28e300572436f459c2cb3bf7e1db663dfb6e0afc..7dda1bb3c062b9893e215cf561d15c27a1f13c91 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" '/>