[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSIS Script for Octave for Windows 2.1.36
From: |
Agustin Barto |
Subject: |
NSIS Script for Octave for Windows 2.1.36 |
Date: |
Thu, 22 Aug 2002 20:16:42 -0300 |
Here's the nsis script. This is the current version. On the version I'm
working on there's a installation directory selection and all the paths are
relative to it (including the registry values).
-----CUT HERE-----
Name "GNU Octave 2.1.36"
OutFile "octave_install.exe"
Icon "c:\Octave\octave.ico"
InstallDir "c:\Octave"
CRCCheck on
LicenseText "You must read the following license before installing:"
LicenseData "c:\Octave\Copying.txt"
SetOverwrite on
ShowInstDetails nevershow
ShowUninstDetails nevershow
Section "Install"
SetOutPath $INSTDIR
File /r "c:\Octave\*.*"
WriteUninstaller "$INSTDIR\uninstall.exe"
WriteRegStr HKCR ".m" "" "m-file"
WriteRegStr HKCR "m-file" "" "m-file"
WriteRegStr HKCR "m-file\Shell\open\command" "" '"$WINDIR\notepad.exe" "%1"'
WriteRegStr HKLM "SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/" "native"
"c:/Octave"
WriteRegDWORD HKLM "SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/" "flags"
"a"
WriteRegStr HKLM "SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin"
"native" "c:/Octave/bin"
WriteRegDWORD HKLM "SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin"
"flags" "a"
WriteRegStr HKLM "SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib"
"native" "c:/Octave/lib"
WriteRegDWORD HKLM "SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib"
"flags" "a"
WriteRegStr HKLM "SOFTWARE\Cygnus Solutions\Cygwin\Program Options" "temp"
"temp"
DeleteRegValue HKLM "SOFTWARE\Cygnus Solutions\Cygwin\Program Options"
"temp"
WriteRegStr HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\mounts v2\/"
"native" "c:/Octave"
WriteRegDWORD HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\mounts v2\/"
"flags" "a"
WriteRegStr HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\mounts
v2\/usr/bin" "native" "c:/cygwin/bin"
WriteRegDWORD HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\mounts
v2\/usr/bin" "flags" "a"
WriteRegStr HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\mounts
v2\/usr/lib" "native" "c:/cygwin/lib"
WriteRegDWORD HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\mounts
v2\/usr/lib" "flags" "a"
WriteRegStr HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\Program Options"
"temp" "temp"
DeleteRegValue HKU ".DEFAULT\Software\Cygnus Solutions\Cygwin\Program
Options" "temp"
WriteRegStr HKCU "Software\Cygnus Solutions\Cygwin\mounts v2\/" "cygdrive
prefix" "/cygdrive"
WriteRegDWORD HKCU "Software\Cygnus Solutions\Cygwin\mounts v2\/" "cygdrive
flags" "22"
WriteRegStr HKCU "Software\Cygnus Solutions\Cygwin\Program Options" "temp"
"temp"
DeleteRegValue HKCU "Software\Cygnus Solutions\Cygwin\Program Options"
"temp"
SectionEnd
Section "Start Menu"
CreateDirectory "$SMPROGRAMS\GNU Octave 2.1.36"
CreateShortCut "$SMPROGRAMS\GNU Octave 2.1.36\Uninstall GNU Octave
2.1.36.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\GNU Octave 2.1.36\GNU Octave 2.1.36.lnk"
"$INSTDIR\bin\rxvt.exe" `--keysym.0xFF50 '^a' --keysym.0xFF57 '^e'
--keysym.0xFFFF '^f^h' -fn "Lucida Console-12" -tn linux -title "GNU Octave
2.1.36" -geometry 80x25 -sl 400 -sr -e /usr/local/bin/start_octave.sh`
"$INSTDIR\octave.ico" 0
CreateShortCut "$SMPROGRAMS\GNU Octave 2.1.36\GNU Octave 2.1.36 Manual.lnk"
"$INSTDIR\octave_manual.pdf"
CreateShortCut "$DESKTOP\GNU Octave 2.1.36.lnk" "$INSTDIR\bin\rxvt.exe"
`--keysym.0xFF50 '^a' --keysym.0xFF57 '^e' --keysym.0xFFFF '^f^h' -fn "Lucida
Console-12" -tn linux -title "GNU Octave 2.1.36" -geometry 80x25 -sl 400 -sr
-e /usr/local/bin/start_octave.sh` "$INSTDIR\octave.ico" 0
SectionEnd
Section "Uninstall"
DeleteRegKey HKCR ".m"
DeleteRegKey HKCR "m-file"
DeleteRegKey HKCR "m-file\Shell\open\command"
DeleteRegKey HKLM "SOFTWARE\Cygnus Solutions"
DeleteRegKey HKU ".DEFAULT\Software\Cygnus Solutions"
DeleteRegKey HKCU "Software\Cygnus Solutions"
Delete "$DESKTOP\GNU Octave 2.1.36.lnk"
Delete "$SMPROGRAMS\GNU Octave 2.1.36\*.*"
Delete "$INSTDIR\*.*"
RMDir "$SMPROGRAMS\GNU Octave 2.1.36"
RMDir /r "$INSTDIR"
SectionEnd
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- NSIS Script for Octave for Windows 2.1.36,
Agustin Barto <=