File: qtoctave.nsi

package info (click to toggle)
qtoctave 0.7.4+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,540 kB
  • ctags: 961
  • sloc: cpp: 9,672; xml: 2,122; sh: 41; ansic: 7; makefile: 6
file content (73 lines) | stat: -rw-r--r-- 1,584 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply 
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there. 

;--------------------------------

; The name of the installer
Name "QtOctave"

; The file to write
OutFile "qtoctave.exe"

; The default installation directory
InstallDir $PROGRAMFILES\QtOctave

;--------------------------------

; Pages

Page directory
Page instfiles

;--------------------------------

; The stuff to install
Section "" ;No components page, name is not important

  ; Set output path to the installation directory.
  SetOutPath $INSTDIR
  
  ; Put file there
  File /r qtoctave
  
  WriteUninstaller "uninstall.exe"
  
SectionEnd ; end the section


Section "Start Menu Shortcuts"

  CreateDirectory "$SMPROGRAMS\QtOctave"

  SetOutPath "$INSTDIR\qtoctave\"

  CreateShortCut "$SMPROGRAMS\QtOctave\QtOctave.lnk" "$INSTDIR\qtoctave\qtoctave.exe"
  
  CreateShortCut "$SMPROGRAMS\QtOctave\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
  
SectionEnd

;--------------------------------

; Uninstaller

Section "Uninstall"
  
  ; Remove registry keys

  ; Remove files and uninstaller
  ;Delete "$INSTDIR\qtoctave\*.*"
  ;RMDir "$INSTDIR\qtoctave\"

  ; Remove shortcuts, if any
  Delete "$SMPROGRAMS\QtOctave\*.*"

  ; Remove directories used
  RMDir "$SMPROGRAMS\QtOctave"
  RMDir /r "$INSTDIR"

SectionEnd