changeset 3831:1191cff7f132

nsis installer: change file registrations to use octave.vbs * makeinst-script.sh: change file registrations to use octave.vbs * installer-files/octave.vbs: add bin folder to path
author John D
date Wed, 04 Mar 2015 18:37:07 -0500
parents c2abfa00fca5
children d27f20f2b0f6
files installer-files/octave.vbs makeinst-script.sh
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/installer-files/octave.vbs	Wed Mar 04 10:40:22 2015 -0500
+++ b/installer-files/octave.vbs	Wed Mar 04 18:37:07 2015 -0500
@@ -9,7 +9,7 @@
 
 ' set up path to ensure octave bin comes first
 Set wshSystemEnv = wshShell.Environment( "PROCESS" )
-wshSystemEnv("PATH") = OctavePath & ";" & wshSystemEnv("PATH")
+wshSystemEnv("PATH") = OctavePath & "\bin;" & wshSystemEnv("PATH")
 
 ' set terminal type
 wshSystemEnv("TERM") = "cygwin"
--- a/makeinst-script.sh	Wed Mar 04 10:40:22 2015 -0500
+++ b/makeinst-script.sh	Wed Mar 04 18:37:07 2015 -0500
@@ -308,7 +308,7 @@
   WriteRegStr HKCR "Octave.Document.$VERSION" "" "GNU Octave Script"
   WriteRegStr HKCR "Octave.Document.$VERSION\\DefaultIcon" "" "\$INSTDIR\\$ICON"
   ; document actions
-  WriteRegStr HKCR "Octave.Document.$VERSION\\shell\\open\\command" "" "\$\\"\$INSTDIR\\octave.bat\$\\" --force-gui --persist --eval \$\\"edit '%1'\$\\""
+  WriteRegStr HKCR "Octave.Document.$VERSION\\shell\\open\\command" "" "wscript \$\\"\$INSTDIR\\octave.vbs\$\\" --force-gui --persist --eval \$\\"edit '%1'\$\\""
 
   \${If} \$RegisterOctaveFileType == \${BST_CHECKED}
     ReadRegStr \$0 HKCR ".m" ""