From cc985e13057841bbd9aa02d1bb96d8df4e5659ff Mon Sep 17 00:00:00 2001
From: Owen Arnold <owen.arnold@stfc.ac.uk>
Date: Tue, 13 Dec 2011 10:27:34 +0000
Subject: [PATCH] refs #4318. Should fix PATH updates.

---
 Code/Mantid/Vates/CMakeLists.txt | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/Code/Mantid/Vates/CMakeLists.txt b/Code/Mantid/Vates/CMakeLists.txt
index b05cf135151..dc354d719aa 100644
--- a/Code/Mantid/Vates/CMakeLists.txt
+++ b/Code/Mantid/Vates/CMakeLists.txt
@@ -60,8 +60,8 @@ if( ParaView_FOUND AND USE_PARAVIEW )
 	    ClearErrors 
 	    ReadEnvStr $R0 'MANTIDPATH'
 	    IfErrors 0 +2
-	    messagebox mb_ok 'Mantid does not appear to be installed.'
-	  
+	    messagebox mb_ok 'Mantid may not be installed. Please check that you have installed Mantid properly.'
+		
 		Push \\\"PATH\\\"
         Push \\\"A\\\"
         Push \\\"HKCU\\\"
@@ -72,6 +72,13 @@ if( ParaView_FOUND AND USE_PARAVIEW )
 		Push \\\"PATH\\\"
         Push \\\"A\\\"
         Push \\\"HKCU\\\"
+        Push \\\"$INSTDIR\\\\..\\\\plugins\\\"
+        Call EnvVarUpdate
+        Pop  \\\$0
+		
+		Push \\\"PATH\\\"
+        Push \\\"A\\\"
+        Push \\\"HKCU\\\"
         Push \\\"$INSTDIR\\\\bin\\\"
         Call EnvVarUpdate
         Pop  \\\$0
@@ -103,6 +110,13 @@ if( ParaView_FOUND AND USE_PARAVIEW )
 		Push \\\"PATH\\\"
         Push \\\"R\\\"
         Push \\\"HKCU\\\"
+        Push \\\"$INSTDIR\\\\..\\\\plugins\\\"
+        Call un.EnvVarUpdate
+        Pop  \\\$0
+		
+		Push \\\"PATH\\\"
+        Push \\\"R\\\"
+        Push \\\"HKCU\\\"
         Push \\\"$INSTDIR\\\\bin\\\"
         Call un.EnvVarUpdate
         Pop  \\\$0
-- 
GitLab