Line | |
---|
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"
|
---|
15 | CreateDirectory "$INSTDIR\www\icons"
|
---|
16 | CreateDirectory "$INSTDIR\modules"
|
---|
17 | CreateDirectory "$INSTDIR\bin"
|
---|
18 | SetOutPath "$INSTDIR"
|
---|
19 | File /oname=LICENSE.txt "../LICENSE"
|
---|
20 | SetOutPath "$INSTDIR\bin"
|
---|
21 | File "tewi.exe"
|
---|
22 | SetOutPath "$INSTDIR\modules"
|
---|
23 | File "../Module/*.dll"
|
---|
24 | SetOutPath "$INSTDIR\etc"
|
---|
25 | SetOverWrite off
|
---|
26 | File /oname=tewi.conf "../example-win.conf"
|
---|
27 | SetOutPath "$INSTDIR\www"
|
---|
28 | File /oname=index.html "../itworks.html"
|
---|
29 | SetOutPath "$INSTDIR\www\icons"
|
---|
30 | File "../Icons/*.png"
|
---|
31 | SetOverWrite on
|
---|
32 |
|
---|
33 | CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
|
---|
34 | CreateShortcut "$SMPROGRAMS\Tewi HTTPd\License.lnk" "$INSTDIR\LICENSE.txt" ""
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.