From 92ef7c3476323ef03c2153eca01b582bf782b55f Mon Sep 17 00:00:00 2001
From: Adam Thorn <alt36@cam.ac.uk>
Date: Fri, 27 Jun 2014 14:56:29 +0100
Subject: [PATCH] Improve Mathematica check condition

---
 mathematica.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mathematica.xml b/mathematica.xml
index fe2fe534..fff9e2b8 100755
--- a/mathematica.xml
+++ b/mathematica.xml
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <packages>
-<package id="mathematica" name="Mathematica" revision="%version%.2" reboot="false" priority="30">
+<package id="mathematica" name="Mathematica" revision="%version%.3" reboot="false" priority="30">
  
   <variable name="version" value="9.0.1" />
- 
-  <check type="uninstall" condition="versiongreaterorequal" path="Wolfram Mathematica.*" value="%version%" />
+  <variable name="majorversion" value="9" />
+  <check type="uninstall" condition="versiongreaterorequal" path="Wolfram Mathematica %majorversion%.*" value="%version%" />
 
   <!-- mathematica seems to complain if it can't run this uninstaller?! -->
 <!--   <install cmd='cmd /c if exist "%AllUsersProfile%\Application Data\Mathematica\Applications\Extras\UninstallFiles\Windows\unins000.exe" "%AllUsersProfile%\Application Data\Mathematica\Applications\Extras\UninstallFiles\Windows\unins000.exe" /silent'/> -->
-- 
GitLab