forked from aweeri/TLEscope
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.nsi
More file actions
47 lines (39 loc) · 1.46 KB
/
installer.nsi
File metadata and controls
47 lines (39 loc) · 1.46 KB
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
Name "TLEscope"
OutFile "dist\TLEscope-Installer.exe"
InstallDir "$PROGRAMFILES\TLEscope"
# installer icons
Icon "dist\TLEscope-Win-Portable\logo.ico"
UninstallIcon "dist\TLEscope-Win-Portable\logo.ico"
# default UI pages
Page Directory
Page InstFiles
Section "Install"
# install read-only binaries to Program Files
SetOutPath "$INSTDIR"
File "dist\TLEscope-Win-Portable\TLEscope.exe"
File "dist\TLEscope-Win-Portable\*.dll"
WriteUninstaller "$INSTDIR\uninstall.exe"
# install assets and config to AppData
# setting the OutPath sets the working directory for shortcuts created below
SetOutPath "$APPDATA\TLEscope"
File /r "dist\TLEscope-Win-Portable\themes"
File "dist\TLEscope-Win-Portable\logo.png"
File "dist\TLEscope-Win-Portable\logo.ico"
File /nonfatal "dist\TLEscope-Win-Portable\settings.json"
File /nonfatal "dist\TLEscope-Win-Portable\data.tle"
File /nonfatal "dist\TLEscope-Win-Portable\persistence.bin"
# create shortcuts
# target: Program Files executable.
CreateShortcut "$DESKTOP\TLEscope.lnk" "$INSTDIR\TLEscope.exe" "" "$APPDATA\TLEscope\logo.ico"
CreateDirectory "$SMPROGRAMS\TLEscope"
CreateShortcut "$SMPROGRAMS\TLEscope\TLEscope.lnk" "$INSTDIR\TLEscope.exe" "" "$APPDATA\TLEscope\logo.ico"
SectionEnd
Section "Uninstall"
# remove Program Files binaries
RMDir /r "$INSTDIR"
# remove AppData configuration and themes
RMDir /r "$APPDATA\TLEscope"
# remove shortcuts
Delete "$DESKTOP\TLEscope.lnk"
RMDir /r "$SMPROGRAMS\TLEscope"
SectionEnd