forked from basil00/Tallow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.nsi
83 lines (68 loc) · 2.25 KB
/
install.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
; install.nsi
; (C) 2021, all rights reserved,
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program. If not, see <http://www.gnu.org/licenses/>.
!include "MUI2.nsh"
SetCompressor /SOLID /FINAL lzma
Name "Tallow"
OutFile "TallowBundle-install.exe"
InstallDir "$PROGRAMFILES\Tallow\"
RequestExecutionLevel admin
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section ""
SetOutPath $INSTDIR
; Tallow files:
File "tallow.exe"
File "hosts.deny"
File "traffic.deny"
File "traffic.divert"
File "LICENSE"
; WinDivert files:
File "WinDivert32.sys"
File "WinDivert64.sys"
File "WinDivert.dll"
; Tor files:
File "libcrypto-1_1.dll"
File "libssl-1_1.dll"
File "libwinpthread-1.dll"
File "libevent-2-1-7.dll"
File "libevent_core-2-1-7.dll"
File "libevent_extra-2-1-7.dll"
File "libgcc_s_sjlj-1.dll"
File "libssp-0.dll"
File "zlib1.dll"
File "tor.exe"
File "geoip"
File "geoip6"
File "torrc"
WriteUninstaller "TallowBundle-uninstall.exe"
WriteRegStr HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Tallow" \
"DisplayName" "TallowBundle"
WriteRegStr HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Tallow" \
"UninstallString" "$\"$INSTDIR\TallowBundle-uninstall.exe$\""
CreateShortCut "$DESKTOP\Tallow.lnk" "$INSTDIR\tallow.exe" ""
SectionEnd
Section "Uninstall"
RMDir /R /REBOOTOK "$INSTDIR\"
DeleteRegKey HKCU "Software\Tallow"
DeleteRegKey HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Tallow"
Delete "$DESKTOP\Tallow.lnk"
SectionEnd