Subversion Repositories Tewi

Rev

Rev 56 | Rev 60 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56 Rev 57
Line 1... Line 1...
1
# $Id: install.nsi 56 2024-09-18 12:17:50Z nishi $
1
# $Id: install.nsi 57 2024-09-18 12:25:26Z nishi $
2
 
2
 
3
Name "Tewi HTTPd"
3
Name "Tewi HTTPd"
4
OutFile "install.exe"
4
OutFile "install.exe"
5
InstallDir "C:\Tewi"
5
InstallDir "C:\Tewi"
6
Icon "tewi.ico"
6
Icon "tewi.ico"
Line 14... Line 14...
14
	CreateDirectory "$INSTDIR\www"
14
	CreateDirectory "$INSTDIR\www"
15
	CreateDirectory "$INSTDIR\bin"
15
	CreateDirectory "$INSTDIR\bin"
16
	SetOutPath "$INSTDIR\bin"
16
	SetOutPath "$INSTDIR\bin"
17
	File "tewi.exe"
17
	File "tewi.exe"
18
	SetOutPath "$INSTDIR\etc"
18
	SetOutPath "$INSTDIR\etc"
19
	File /oname=tewi.conf "../example-win.conf"
19
	File /oname=tewi.conf.default "../example-win.conf"
20
	SetOutPath "$INSTDIR\www"
20
	SetOutPath "$INSTDIR\www"
21
	File /oname=index.html "../itworks.html"
21
	File /oname=index.html "../itworks.html"
22
 
22
 
23
	CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
23
	CreateDirectory "$SMPROGRAMS\Tewi HTTPd"
24
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
24
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
Line 27... Line 27...
27
 
27
 
28
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "DisplayName" "Tewi HTTPd"
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"'
29
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "UninstallString" '"$INSTDIR\uninstall.exe"'
30
 
30
 
31
	WriteUninstaller "$INSTDIR\uninstall.exe"
31
	WriteUninstaller "$INSTDIR\uninstall.exe"
-
 
32
 
-
 
33
	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."
32
SectionEnd
34
SectionEnd
33
 
35
 
34
Section "Uninstall"
36
Section "Uninstall"
35
	RMDir /r "$INSTDIR"
37
	RMDir /r "$INSTDIR"
36
	RMDir /r "$SMPROGRAMS\Tewi HTTPd"
38
	RMDir /r "$SMPROGRAMS\Tewi HTTPd"