comparison makeinst-script.sh @ 4028:8803dfa40236

nsis installer: set directory to userprofile on startof octave from installer (Bug #45899) * installer-files/octave-firsttime.vbs: new file * binary-dist-rules.mk: copy octave-firsttime.vbs to disy folder * dist-files.mk: add installer-files/octave-firsttime.vbs * makeinst-script.sh: install and then run octave-firsttime.vbs if the run checkbox is selected at end of install.
author John Donoghue
date Wed, 16 Sep 2015 07:51:27 -0400
parents 9d402d735dd1
children 0962acdde3be
comparison
equal deleted inserted replaced
4027:c8c394328c54 4028:8803dfa40236
42 !define OCTAVE_VERSION "$OCTAVE_VERSION" 42 !define OCTAVE_VERSION "$OCTAVE_VERSION"
43 !define COPYRIGHT "Copyright © 2013 John W. Eaton and others." 43 !define COPYRIGHT "Copyright © 2013 John W. Eaton and others."
44 !define DESCRIPTION "GNU Octave is a high-level programming language, primarily intended for numerical computations." 44 !define DESCRIPTION "GNU Octave is a high-level programming language, primarily intended for numerical computations."
45 !define INSTALLER_FILES "../installer-files" 45 !define INSTALLER_FILES "../installer-files"
46 !define INSTALLER_NAME "octave-$OCTAVE_VERSION-installer.exe" 46 !define INSTALLER_NAME "octave-$OCTAVE_VERSION-installer.exe"
47 !define MAIN_APP_EXE "octave.vbs" 47 !define MAIN_APP_EXE "octave-firsttime.vbs"
48 !define INSTALL_TYPE "SetShellVarContext current" 48 !define INSTALL_TYPE "SetShellVarContext current"
49 !define PRODUCT_ROOT_KEY "HKLM" 49 !define PRODUCT_ROOT_KEY "HKLM"
50 !define PRODUCT_KEY "Software\\Octave-$VERSION" 50 !define PRODUCT_KEY "Software\\Octave-$VERSION"
51 51
52 ###################################################################### 52 ######################################################################
221 221
222 ; include the octave.bat file 222 ; include the octave.bat file
223 SetOutPath "\$INSTDIR" 223 SetOutPath "\$INSTDIR"
224 File "$OCTAVE_SOURCE/octave.bat" 224 File "$OCTAVE_SOURCE/octave.bat"
225 File "$OCTAVE_SOURCE/octave.vbs" 225 File "$OCTAVE_SOURCE/octave.vbs"
226 File "$OCTAVE_SOURCE/octave-firsttime.vbs"
226 227
227 ; distro files 228 ; distro files
228 EOF 229 EOF
229 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then 230 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then
230 echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE 231 echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE