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

Last change on this file since 61 was 61, checked in by Nishi, on Sep 18, 2024 at 9:45:02 PM

add ServerRoot

  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[54]1# $Id: install.nsi 61 2024-09-18 12:45:02Z 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"
[60]15 CreateDirectory "$INSTDIR\www\icons"
[61]16 CreateDirectory "$INSTDIR\modules"
[54]17 CreateDirectory "$INSTDIR\bin"
[61]18 SetOutPath "$INSTDIR"
19 File /oname=LICENSE.txt "../LICENSE"
[54]20 SetOutPath "$INSTDIR\bin"
21 File "tewi.exe"
[61]22 SetOutPath "$INSTDIR\modules"
23 File "../Module/*.dll"
[54]24 SetOutPath "$INSTDIR\etc"
[61]25 SetOverWrite off
26 File /oname=tewi.conf "../example-win.conf"
[54]27 SetOutPath "$INSTDIR\www"
28 File /oname=index.html "../itworks.html"
[60]29 SetOutPath "$INSTDIR\www\icons"
30 File "../Icons/*.png"
[61]31 SetOverWrite on
[54]32
33 CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
[61]34 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\License.lnk" "$INSTDIR\LICENSE.txt" ""
[54]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"
43SectionEnd
44
45Section "Uninstall"
46 RMDir /r "$INSTDIR"
47 RMDir /r "$SMPROGRAMS\Tewi HTTPd"
48
49 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd"
50SectionEnd
Note: See TracBrowser for help on using the repository browser.