Subversion Repositories Tewi

Rev

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

Rev 206 Rev 208
Line 1... Line 1...
1
# $Id: install.nsi 206 2024-10-02 02:33:40Z nishi $
1
# $Id: install.nsi 208 2024-10-02 02:59:59Z nishi $
2
 
2
 
3
VIFileVersion "1.0.0.0"
3
VIFileVersion "1.0.0.0"
4
VIProductVersion "1.0.0.0"
4
VIProductVersion "1.0.0.0"
5
VIAddVersionKey "FileVersion" "${VERSION}"
5
VIAddVersionKey "FileVersion" "${VERSION}"
6
VIAddVersionKey "LegalCopyright" "Public domain. Original by Nishi"
6
VIAddVersionKey "LegalCopyright" "Public domain. Original by Nishi"
Line 20... Line 20...
20
LangString SERV_TOO ${LANG_ENGLISH} "Install the service too (NT-only)"
20
LangString SERV_TOO ${LANG_ENGLISH} "Install the service too (NT-only)"
21
LangString SERV_TOO ${LANG_JAPANESE} "サービスもインストールする(NTのみ)"
21
LangString SERV_TOO ${LANG_JAPANESE} "サービスもインストールする(NTのみ)"
22
LangString WAIT_STOP ${LANG_ENGLISH} "Waiting for 1 second so service can stop"
22
LangString WAIT_STOP ${LANG_ENGLISH} "Waiting for 1 second so service can stop"
23
LangString WAIT_STOP ${LANG_JAPANESE} "サービスが止まるのを待っています"
23
LangString WAIT_STOP ${LANG_JAPANESE} "サービスが止まるのを待っています"
24
 
24
 
-
 
25
!include "x64.nsh"
25
!include "LogicLib.nsh"
26
!include "LogicLib.nsh"
26
!include "Sections.nsh"
27
!include "Sections.nsh"
27
 
28
 
28
Page license
29
Page license
29
Page directory
30
Page directory
Line 55... Line 56...
55
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\License.lnk" "$INSTDIR\LICENSE.txt" ""
56
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\License.lnk" "$INSTDIR\LICENSE.txt" ""
56
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
57
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" ""
57
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd (verbose).lnk" "$INSTDIR\bin\tewi.exe" "-v"
58
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd (verbose).lnk" "$INSTDIR\bin\tewi.exe" "-v"
58
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Uninstall Tewi HTTPd.lnk" "$INSTDIR\uninstall.exe" ""
59
	CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Uninstall Tewi HTTPd.lnk" "$INSTDIR\uninstall.exe" ""
59
 
60
 
-
 
61
	${If} ${RunningX64}
-
 
62
		SetRegView 64
-
 
63
	${Else}
-
 
64
		SetRegView 32
-
 
65
	${EndIf}
60
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "DisplayName" "Tewi HTTPd"
66
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "DisplayName" "Tewi HTTPd"
61
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "InstallDir" '"$INSTDIR"'
67
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "InstallDir" "$INSTDIR"
62
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "UninstallString" '"$INSTDIR\uninstall.exe"'
68
	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd" "UninstallString" '"$INSTDIR\uninstall.exe"'
63
 
69
 
64
	WriteUninstaller "$INSTDIR\uninstall.exe"
70
	WriteUninstaller "$INSTDIR\uninstall.exe"
65
SectionEnd
71
SectionEnd
66
 
72
 
Line 123... Line 129...
123
	${EndIf}
129
	${EndIf}
124
 
130
 
125
	RMDir /r "$INSTDIR"
131
	RMDir /r "$INSTDIR"
126
	RMDir /r "$SMPROGRAMS\Tewi HTTPd"
132
	RMDir /r "$SMPROGRAMS\Tewi HTTPd"
127
 
133
 
-
 
134
	${If} ${RunningX64}
-
 
135
		SetRegView 64
-
 
136
	${Else}
-
 
137
		SetRegView 32
-
 
138
	${EndIf}
128
	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd"
139
	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tewi HTTPd"
129
SectionEnd
140
SectionEnd