source: Main/trunk/Server/install.nsi@ 56

Last change on this file since 56 was 56, checked in by Nishi, on Sep 18, 2024 at 9:17:50 PM

set keywords

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: install.nsi 56 2024-09-18 12:17:50Z nishi $
2
3Name "Tewi HTTPd"
4OutFile "install.exe"
5InstallDir "C:\Tewi"
6Icon "tewi.ico"
7LicenseData ../LICENSE
8Page license
9Page instfiles
10UninstPage uninstConfirm
11UninstPage instfiles
12Section
13 CreateDirectory "$INSTDIR\etc"
14 CreateDirectory "$INSTDIR\www"
15 CreateDirectory "$INSTDIR\bin"
16 SetOutPath "$INSTDIR\bin"
17 File "tewi.exe"
18 SetOutPath "$INSTDIR\etc"
19 File /oname=tewi.conf "../example-win.conf"
20 SetOutPath "$INSTDIR\www"
21 File /oname=index.html "../itworks.html"
22
23 CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
24 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
25 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd (verbose).lnk" "$INSTDIR\bin\tewi.exe" "-v"
26 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Uninstall Tewi HTTPd.lnk" "$INSTDIR\uninstall.exe" ""
27
28 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "DisplayName" "Tewi HTTPd"
29 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "UninstallString" '"$INSTDIR\uninstall.exe"'
30
31 WriteUninstaller "$INSTDIR\uninstall.exe"
32SectionEnd
33
34Section "Uninstall"
35 RMDir /r "$INSTDIR"
36 RMDir /r "$SMPROGRAMS\Tewi HTTPd"
37
38 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd"
39SectionEnd
Note: See TracBrowser for help on using the repository browser.