54 |
nishi |
1 |
# $Id: install.nsi 61 2024-09-18 12:45:02Z nishi $
|
|
|
2 |
|
|
|
3 |
Name "Tewi HTTPd"
|
|
|
4 |
OutFile "install.exe"
|
|
|
5 |
InstallDir "C:\Tewi"
|
|
|
6 |
Icon "tewi.ico"
|
|
|
7 |
LicenseData ../LICENSE
|
|
|
8 |
Page license
|
|
|
9 |
Page instfiles
|
|
|
10 |
UninstPage uninstConfirm
|
|
|
11 |
UninstPage instfiles
|
|
|
12 |
Section
|
|
|
13 |
CreateDirectory "$INSTDIR\etc"
|
|
|
14 |
CreateDirectory "$INSTDIR\www"
|
60 |
nishi |
15 |
CreateDirectory "$INSTDIR\www\icons"
|
61 |
nishi |
16 |
CreateDirectory "$INSTDIR\modules"
|
54 |
nishi |
17 |
CreateDirectory "$INSTDIR\bin"
|
61 |
nishi |
18 |
SetOutPath "$INSTDIR"
|
|
|
19 |
File /oname=LICENSE.txt "../LICENSE"
|
54 |
nishi |
20 |
SetOutPath "$INSTDIR\bin"
|
|
|
21 |
File "tewi.exe"
|
61 |
nishi |
22 |
SetOutPath "$INSTDIR\modules"
|
|
|
23 |
File "../Module/*.dll"
|
54 |
nishi |
24 |
SetOutPath "$INSTDIR\etc"
|
61 |
nishi |
25 |
SetOverWrite off
|
|
|
26 |
File /oname=tewi.conf "../example-win.conf"
|
54 |
nishi |
27 |
SetOutPath "$INSTDIR\www"
|
|
|
28 |
File /oname=index.html "../itworks.html"
|
60 |
nishi |
29 |
SetOutPath "$INSTDIR\www\icons"
|
|
|
30 |
File "../Icons/*.png"
|
61 |
nishi |
31 |
SetOverWrite on
|
54 |
nishi |
32 |
|
|
|
33 |
CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
|
61 |
nishi |
34 |
CreateShortcut "$SMPROGRAMS\Tewi HTTPd\License.lnk" "$INSTDIR\LICENSE.txt" ""
|
54 |
nishi |
35 |
CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
|
|
|
36 |
CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd (verbose).lnk" "$INSTDIR\bin\tewi.exe" "-v"
|
|
|
37 |
CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Uninstall Tewi HTTPd.lnk" "$INSTDIR\uninstall.exe" ""
|
|
|
38 |
|
|
|
39 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "DisplayName" "Tewi HTTPd"
|
|
|
40 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
|
|
41 |
|
|
|
42 |
WriteUninstaller "$INSTDIR\uninstall.exe"
|
|
|
43 |
SectionEnd
|
|
|
44 |
|
|
|
45 |
Section "Uninstall"
|
|
|
46 |
RMDir /r "$INSTDIR"
|
|
|
47 |
RMDir /r "$SMPROGRAMS\Tewi HTTPd"
|
|
|
48 |
|
|
|
49 |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd"
|
|
|
50 |
SectionEnd
|