-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.nsi
78 lines (54 loc) · 1.65 KB
/
installer.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
!include "MUI2.nsh"
!define MUI_ICON "nicestalker/resources/nightstalker.ico"
;--------------------------------
;General
;Name and file
Name "NiceStalker"
OutFile "NiceStalkerInstaller.exe"
Unicode True
;Default installation folder
InstallDir "$LOCALAPPDATA\NiceStalker"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\NiceStalker" ""
;Request application privileges for Windows Vista
RequestExecutionLevel user
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Installer Sections
Section
SetOutPath "$INSTDIR"
File "NiceStalker.exe"
WriteRegStr HKCU "Software\NiceStalker" "" $INSTDIR
WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd
Section "Desktop Shortcut"
CreateShortcut "$Desktop\$(^Name).lnk" "$InstDir\NiceStalker.exe"
SectionEnd
Section "Start Menu Shortcut"
CreateShortcut "$SMPrograms\$(^Name).lnk" "$InstDir\NiceStalker.exe"
SectionEnd
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
Delete "$INSTDIR\NiceStalker.exe"
Delete "$INSTDIR\Uninstall.exe"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKCU "Software\NiceStalker"
SectionEnd