-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.nsi
106 lines (77 loc) · 3.49 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
; tea.nsi
!include MUI2.nsh
; The name of the installer
Name "Drumlabooh installer"
Caption "Drumlabooh VSTi setup"
SubCaption 2 ": Select VSTi folder"
SubCaption 0 ": License agreement"
SubCaption 3 ": Files installation"
SubCaption 4 ": Done"
SubCaption 1 ": Components"
CRCCheck on
;SetCompressor zlib
;SetCompressor bzip2
SetCompressor lzma
;Icon "tea_app.ico"
InstallColors 000000 FCE6BD
LicenseBkColor FCE6BD
;InstProgressFlags "colored"
InstProgressFlags smooth colored
LicenseData "LICENSE"
UninstallText "Removing Drumlabooh. Are you sure?"
ShowInstDetails show
ShowUninstDetails show
CompletedText "Done!"
MiscButtonText "< Previous" "Next >" "Cancel" "Close"
InstallButtonText "Install"
UninstallButtonText "Uninstall"
UninstallCaption "Remove Drumlabooh"
UninstallSubCaption 0 ": Confirmation"
UninstallSubCaption 1 ": Removing files"
UninstallSubCaption 2 ": Done"
; The file to write
OutFile "drumlabooh-installer.exe"
; The default installation directory
InstallDir "$PROGRAMFILES\Common Files\VST3\drumlabooh.vst3"
; The stuff to install
Section "Drumlabooh (Stereo)"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File /r "D:\a\drumlabooh\drumlabooh\build\drumlabooh_artefacts\Release\VST3\drumlabooh.vst3\Contents\Resources\moduleinfo.json"
File /r "D:\a\drumlabooh\drumlabooh\build\drumlabooh_artefacts\Release\VST3\drumlabooh.vst3\Contents\x86_64-win\drumlabooh.vst3"
WriteRegStr HKLM SOFTWARE\Drumlabooh "Install_Dir" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Drumlabooh" "DisplayName" "Drumlabooh (remove)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Drumlabooh" "UninstallString" '"$INSTDIR\nsUninst.exe"'
WriteUninstaller "nsUninst.exe"
; ExecShell "open" '"$INSTDIR\doc\note_for_users.html"'
SectionEnd
; The stuff to install
Section "Drumlabooh (Multi)"
; Set output path to the installation directory.
SetOutPath "$PROGRAMFILES\Common Files\VST3\drumlabooh-multi.vst3"
; Put file there
File /r "D:\a\drumlabooh\drumlabooh\build\drumlabooh-multi_artefacts\Release\VST3\drumlabooh-multi.vst3\Contents\Resources\moduleinfo.json"
File /r "D:\a\drumlabooh\drumlabooh\build\drumlabooh-multi_artefacts\Release\VST3\drumlabooh-multi.vst3\Contents\x86_64-win\drumlabooh-multi.vst3"
; WriteRegStr HKLM SOFTWARE\Drumlabooh_multi "Install_Dir" "$PROGRAMFILES\Common Files\VST3\drumlabooh-multi.vst3"
;WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Drumlabooh-multi" "DisplayName" "Drumlabooh-multi (remove)"
;WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Drumlabooh-multi" "UninstallString" '"$PROGRAMFILES\Common Files\VST3\drumlabooh-multi.vst3\nsUninst.exe"'
;WriteUninstaller "nsUninst.exe"
; ExecShell "open" '"$INSTDIR\doc\note_for_users.html"'
SectionEnd
Section "Basic drumkits"
; Set output path to the installation directory.
SetOutPath "C:\drumlabooh-kits"
;D:/a/drumlabooh/drumlabooh/build/_deps/drum_sklad-src
; Put file there
File /r "D:\a\drumlabooh\drumlabooh\build\_deps\drum_sklad-src\*.*"
; ExecShell "open" '"$INSTDIR\doc\note_for_users.html"'
SectionEnd
Section "Uninstall"
Delete $INSTDIR\nsUninst.exe
Delete $INSTDIR\*.*
Delete "C:\drumlabooh-kits\*.*"
Delete "$PROGRAMFILES\Common Files\VST3\drumlabooh-multi.vst3\*.*"
RMDir /r $INSTDIR
SectionEnd
; eof