Rev | Line | |
---|
[54] | 1 | # $Id: install.nsi 60 2024-09-18 12:30:33Z 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] | 15 | CreateDirectory "$INSTDIR\www\icons"
|
---|
[54] | 16 | CreateDirectory "$INSTDIR\bin"
|
---|
| 17 | SetOutPath "$INSTDIR\bin"
|
---|
| 18 | File "tewi.exe"
|
---|
| 19 | SetOutPath "$INSTDIR\etc"
|
---|
[57] | 20 | File /oname=tewi.conf.default "../example-win.conf"
|
---|
[54] | 21 | SetOutPath "$INSTDIR\www"
|
---|
| 22 | File /oname=index.html "../itworks.html"
|
---|
[60] | 23 | SetOutPath "$INSTDIR\www\icons"
|
---|
| 24 | File "../Icons/*.png"
|
---|
[54] | 25 |
|
---|
| 26 | CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
|
---|
| 27 | CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
|
---|
| 28 | CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd (verbose).lnk" "$INSTDIR\bin\tewi.exe" "-v"
|
---|
| 29 | CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Uninstall Tewi HTTPd.lnk" "$INSTDIR\uninstall.exe" ""
|
---|
| 30 |
|
---|
| 31 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "DisplayName" "Tewi HTTPd"
|
---|
| 32 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
---|
| 33 |
|
---|
| 34 | WriteUninstaller "$INSTDIR\uninstall.exe"
|
---|
[57] | 35 |
|
---|
| 36 | MessageBox MB_ICONEXCLAMATION|MB_OK "Example config is installed as $INSTDIR\etc\tewi.conf.default,$\r$\nBut Tewi HTTPd will try to use $INSTDIR\etc\tewi.conf."
|
---|
[54] | 37 | SectionEnd
|
---|
| 38 |
|
---|
| 39 | Section "Uninstall"
|
---|
| 40 | RMDir /r "$INSTDIR"
|
---|
| 41 | RMDir /r "$SMPROGRAMS\Tewi HTTPd"
|
---|
| 42 |
|
---|
| 43 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd"
|
---|
| 44 | SectionEnd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.