~ubuntu-branches/ubuntu/intrepid/enigma/intrepid

« back to all changes in this revision

Viewing changes to etc/enigma.nsi

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2005-08-28 15:30:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050828153009-sky64kb6tcq37xt5
Tags: 0.92.1-1
* New upstream subversion checkout
* Remove menu.s3m, which we are allowed to distributed but not to modify
  also copyright notice is confusing... (Closes: #321669)
* Rebuild with new libzipios (Closes: #325405)
  I hope this works without a versioned build-dependency
* Added "enigma replaces enigma-data" for upgrades (Closes: #308558)
* Added notes about the fonts copyright.
* updated to policy 3.6.2.1 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; example2.nsi
2
 
;
3
 
; This script is based on example1.nsi, but adds uninstall support
4
 
; and (optionally) start menu shortcuts.
5
 
;
6
 
; It will install notepad.exe into a directory that the user selects,
7
 
;
8
 
 
9
 
!define VERSION "0.92"
10
 
 
11
 
; Source directory
12
 
!define SDIR ".\"
13
 
 
14
 
; The name of the installer
15
 
Name "Enigma"
16
 
Caption "Enigma ${VERSION} Setup"
17
 
 
18
 
; The file to write
19
 
OutFile "Enigma-0.92.exe"
20
 
SetCompressor lzma
21
 
 
22
 
; The default installation directory
23
 
InstallDir $PROGRAMFILES\Enigma
24
 
; Registry key to check for directory (so if you install again, it will 
25
 
; overwrite the old one automatically)
26
 
InstallDirRegKey HKLM SOFTWARE\Enigma "Install_Dir"
27
 
 
28
 
; The text to prompt the user to enter a directory
29
 
ComponentText "This will install Enigma on your computer. Select which optional things you want installed."
30
 
; The text to prompt the user to enter a directory
31
 
DirText "Choose a directory to install in to:"
32
 
 
33
 
; The stuff to install
34
 
Section "Enigma (required)"
35
 
  ; Set output path to the installation directory.
36
 
  SetOutPath $INSTDIR
37
 
 
38
 
  ; Put file there
39
 
  File /r "${SDIR}\data"
40
 
  File /r "${SDIR}\doc"
41
 
  File /r "${SDIR}\manual"
42
 
  File    "${SDIR}\*.*"
43
 
  ; Write the installation path into the registry
44
 
  WriteRegStr HKLM SOFTWARE\Enigma "Install_Dir" "$INSTDIR"
45
 
  ; Write the uninstall keys for Windows
46
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Enigma" "DisplayName" "Enigma"
47
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Enigma" "UninstallString" '"$INSTDIR\uninstall.exe"'
48
 
  WriteUninstaller "uninstall.exe"
49
 
SectionEnd
50
 
 
51
 
; optional section
52
 
Section "Start Menu Shortcuts"
53
 
  CreateDirectory "$SMPROGRAMS\Enigma"
54
 
  CreateShortCut "$SMPROGRAMS\Enigma\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
55
 
  CreateShortCut "$SMPROGRAMS\Enigma\Enigma.lnk" "$INSTDIR\enigma.exe" "" "$INSTDIR\enigma.exe" 0
56
 
  CreateShortCut "$SMPROGRAMS\Enigma\Manual.lnk" "$INSTDIR\manual\index.html" "" "$INSTDIR\manual\index.html" 0
57
 
SectionEnd
58
 
 
59
 
; uninstall stuff
60
 
 
61
 
UninstallText "This will uninstall Enigma. Hit next to continue."
62
 
 
63
 
; special uninstall section.
64
 
Section "Uninstall"
65
 
  ; remove registry keys
66
 
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Enigma"
67
 
  DeleteRegKey HKLM SOFTWARE\Enigma
68
 
  ; remove files
69
 
  ; Delete $INSTDIR\not.exe
70
 
  ; MUST REMOVE UNINSTALLER, too
71
 
  ;Delete $INSTDIR\uninstall.exe
72
 
  ; remove shortcuts, if any.
73
 
  Delete "$SMPROGRAMS\Enigma\*.*"
74
 
  ; remove directories used.
75
 
  RMDir "$SMPROGRAMS\Enigma"
76
 
  RMDir /r "$INSTDIR"
77
 
SectionEnd
78
 
 
79
 
; eof