File: cherokee.nsi

package info (click to toggle)
cherokee 0.7.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,808 kB
  • ctags: 6,577
  • sloc: ansic: 45,071; python: 9,628; sh: 9,468; makefile: 1,639; xml: 61; perl: 32
file content (79 lines) | stat: -rw-r--r-- 2,696 bytes parent folder | download
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
74
75
76
77
78
79
!include "MUI.nsh"

Name "Cherokee Web Server"
OutFile "Cherokee-setup-0.7.2.exe"
InstallDir "$PROGRAMFILES\Cherokee"
DirText "Choose a folder in which to install Cherokee"
ShowInstDetails show

!define MUI_WELCOMEPAGE_TITLE "Welcome to the Cherokee Web Server Setup Wizard"
!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of Cherokee Web Server..\r\n\r\nWhile we do our best to be easy, fast and flexible, you need to let us know if we're succeeding.\r\n\r\nPlease, don't hesitate to email us on\r\n\r\n\tcherokee@cherokee-project.com\r\n\r\nand visit the web site\r\n\r\n\thttp://www.cherokee-project.com\r\n\r\n\r\n\r\n$_CLICK"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "../COPYING"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY

!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

!undef MUI_ICON
!undef MUI_UNICON
!define MUI_ICON "cherokee_pkg.ico"
!define MUI_UNICON "cherokee_pkg.ico"

!define MUI_FINISHPAGE_LINK "Visit the Cherokee site for the latest news!!"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.cherokee-project.com/"

!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"

UninstPage uninstConfirm
UninstPage instfiles

Section "HTTP Server" SecCore
  SetOutPath $INSTDIR\www
  File ../www\*.html
  SetOutPath $INSTDIR\www\images
  File ../www\*.png

  SetOutPath $INSTDIR
  File ../cherokee\cherokee.exe
  File cherokee.ico
  File pthreadGC2.dll

  File install.bat
  ExecWait '"$INSTDIR\install.bat"'  
  delete $INSTDIR\install.bat

  WriteUninstaller "uninstall.exe"
SectionEnd

Section "Documentation"
  SetOutPath $INSTDIR\doc
  File ../doc\*.html  
  File ../doc\*.png

  SetOutPath $INSTDIR\doc\images
  File ../doc\images\*.*
SectionEnd

Section "Start Menu Shortcuts"
  CreateShortCut  "$SMPROGRAMS\Cherokee HTTP Server.lnk" "$INSTDIR\cherokee.bat" "" "$INSTDIR\cherokee.ico"
  CreateDirectory "$SMPROGRAMS\Cherokee HTTP Server utils"
  CreateShortCut  "$SMPROGRAMS\Cherokee HTTP Server utils\Documentation.lnk" "$INSTDIR\doc\index.html" "" "$INSTDIR\doc\index.html" 0
  CreateShortCut  "$SMPROGRAMS\Cherokee HTTP Server utils\Edit Configuration.lnk" "notepad.exe" "$INSTDIR\cherokee.conf"
  WriteINIStr     "$SMPROGRAMS\Cherokee HTTP Server utils\Cherokee Site.url" "InternetShortcut" "URL" "http://www.cherokee-project.com/"
SectionEnd

Section "Uninstall"
  Delete $INSTDIR\cherokee.exe
  Delete $INSTDIR\cherokee.bat
  Delete $INSTDIR\uninstall.exe

  Delete "$SMPROGRAMS\Cherokee\*.*"

  RMDir "$SMPROGRAMS\Cherokee"
  RMDir "$INSTDIR"
SectionEnd