forked from SoundScapeRenderer/ssr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
SSR-installer.nsi
63 lines (42 loc) · 1.53 KB
/
SSR-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
# define name of installer
OutFile "SSR-installer.exe"
# The default installation directory
InstallDir $PROGRAMFILES64\SoundScapeRenderer
RequestExecutionLevel admin
;--------------------------------
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;-------------------------------
# start default section
Section "Installer Section"
# set the installation directory as the destination for the following actions
SetOutPath $INSTDIR
# specify file to go in output path
File ssr-win-bin\*.exe
# add dependencies
File /r /x libjack*.dll ssr-win-bin\deps\*.*
# add resources
File /r ssr-win-bin\data\
File /oname=data\default_hrirs.wav ssr-win-bin\data\impulse_responses\hrirs\hrirs_fabian_min_phase_eq.wav
# create the uninstaller
WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd
Section "Start Menu Shortcuts"
# create a shortcut named "SoundScapeRenderer" in the start menu programs directory
# point the new shortcut at the program uninstaller
CreateDirectory "$SMPROGRAMS\SoundScapeRenderer"
CreateShortcut "$SMPROGRAMS\SoundScapeRenderer\uninstall.lnk" "$INSTDIR\uninstall.exe"
SectionEnd
# uninstaller section start
Section "un.Uninstaller Section"
# TODO
# Remove the link from the start menu
Delete "$SMPROGRAMS\SoundScapeRenderer\uninstall.lnk"
RMDir "$SMPROGRAMS\SoundScapeRenderer"
RMDir $INSTDIR
MessageBox MB_OK "You need to manually remove the files for now!"
# uninstaller section end
SectionEnd