This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
options.nsi
126 lines (88 loc) · 3.8 KB
/
options.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
!include "x64.nsh"
!include "LogicLib.nsh"
!include "FileFunc.nsh"
!include "WinVer.nsh"
;--------------------------------
;General
!packhdr tmpexe.tmp "UPX --best -f -q -v --ultra-brute --all-methods --all-filters --compress-icons=0 tmpexe.tmp" ;upx
Unicode true
ManifestDPIAware true
SetCompressor /SOLID lzma
SetCompressorDictSize 128
SetDatablockOptimize ON
;Define name of the product
!define PRODUCT "UkITA Installer"
!define PRODUCT_VERSION "2.1.1"
!define INSTALLER_NAME "ukita_installer"
!define UNINSTALLER_NAME "uninstall"
!define telegram_link "https://t.me/itarmyofukraine2022"
!define discord_link "https://discord.gg/DBYFvGQypD"
BrandingText "${PRODUCT} ${PRODUCT_VERSION}"
!define MHDDOS_PROXY_DIR "$INSTDIR\mhddos_proxy"
!define DB1000N_DIR "$INSTDIR\db1000n"
!define DISTRESS_DIR "$INSTDIR\distress"
;Installer Version Information
VIAddVersionKey "ProductName" "${PRODUCT}"
VIAddVersionKey "CompanyName" "IT ARMY of Ukraine"
VIAddVersionKey "LegalCopyright" "Copyright ©2022 UkITA Installer"
VIAddVersionKey "FileDescription" "UkITA Installer"
VIAddVersionKey "FileVersion" "${PRODUCT_VERSION}"
VIProductVersion "${PRODUCT_VERSION}.0"
;Define the main name of the installer
Name "${PRODUCT}"
;Define the directory where the installer should be saved
OutFile "output\${INSTALLER_NAME}.exe"
# set to default here, override in .onInit if on 64bit
InstallDir "$APPDATA\${INSTALLER_NAME}"
;Request rights if you want to install the program to program files
RequestExecutionLevel admin
;Show 'console' in installer and uninstaller
ShowInstDetails "show"
ShowUninstDetails "show"
;Get installation folder from registry if available
InstallDirRegKey HKLM "Software\${PRODUCT}" "InstallLocation"
;--------------------------------
;Interface Settings
;Show warning if user wants to abort
!define MUI_ABORTWARNING
;Show all languages, despite user's codepage
!define MUI_LANGDLL_ALLLANGUAGES
;Use optional a custom icon:
!define MUI_ICON "resources\itarmy.ico" # for the Installer
!define MUI_UNICON "resources\icon_uninstaller.ico" # for the later created UnInstaller
;Use optional a custom picture for the 'Welcome' and 'Finish' page:
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "resources\headerimage-r.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "resources\headerimage-uninstall-r.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "resources\welcomefinishimage.bmp" # for the Installer
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "resources\unwelcomefinishimage.bmp" # for the later created UnInstaller
;Optional no descripton for all components
!define MUI_COMPONENTSPAGE_NODESC
;--------------------------------
;Remember the unistaller/installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKLM"
!define MUI_LANGDLL_REGISTRY_KEY "Software\${PRODUCT}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
;--------------------------------
;Pages
;For the installer
!insertmacro MUI_PAGE_WELCOME # simply remove this and other pages if you don't want it
Page Custom Page_Win7Info
!insertmacro MUI_PAGE_LICENSE "LICENSE" # link to an ANSI encoded license file
!insertmacro MUI_PAGE_COMPONENTS # remove if you don't want to list components
!insertmacro MUI_PAGE_DIRECTORY
Page Custom Page_TermsOfUse
Page Custom UserIDPage UserIDPageLeave
!insertmacro MUI_PAGE_INSTFILES
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ShowFinishCheckbox
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE OpenFinishLink
!insertmacro MUI_PAGE_FINISH
;For the uninstaller
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH