Skip to content

Commit

Permalink
NSIS upd
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Oct 8, 2023
1 parent df8aa34 commit 890d2f6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake-nsis-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -SMULTI=ON

- name: Build
# Build your program with the given configuration
Expand Down
45 changes: 19 additions & 26 deletions install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,14 @@ UninstallSubCaption 0 ": Confirmation"
UninstallSubCaption 1 ": Removing files"
UninstallSubCaption 2 ": Done"

;C:\Program Files\Common Files\VST3\drumlabooh.vst3

; The file to write
OutFile "drumlabooh-installer.exe"

; The default installation directory
InstallDir "$PROGRAMFILES\Common Files\VST3\drumlabooh.vst3"


; The text to prompt the user to enter a directory
;DirText "Select VSTi folder please"
;ComponentText "Select the compoments to install"


; The stuff to install
Section "Files (mandatory)"
Section "Drumlabooh (Stereo)"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
Expand All @@ -68,38 +60,39 @@ Section "Files (mandatory)"
SectionEnd


Section "Basic drumkits"
; The stuff to install
Section "Drumlabooh (Multi)"
; Set output path to the installation directory.
SetOutPath "C:\drumlabooh-kits"
;D:/a/drumlabooh/drumlabooh/build/_deps/drum_sklad-src
SetOutPath "$PROGRAMFILES\Common Files\VST3\drumlabooh-multi.vst3"
; Put file there
File /r "D:\a\drumlabooh\drumlabooh\build\_deps\drum_sklad-src\*.*"
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 "ßðëûêè â Ãëàâíîì ìåíþ (âûáîðî÷íî)"

; CreateDirectory "$SMPROGRAMS\TEA"
; CreateShortCut "$SMPROGRAMS\TEA\Tea.lnk" "$INSTDIR\tea.exe"
; CreateShortCut "$SMPROGRAMS\TEA\Óäàëèòü Tea.lnk" "$INSTDIR\nsUninst.exe"

;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\*.*"

;Section "Ñîçäàòü ÿðëûê íà Ðàáî÷åì ñòîëå"
; ExecShell "open" '"$INSTDIR\doc\note_for_users.html"'

;CreateShortCut "$DESKTOP\Tea(Win32).lnk" "$INSTDIR\tea.exe"
SectionEnd

;SectionEnd


Section "Uninstall"

; Delete $DESKTOP\Tea.lnk
; Delete $SMPROGRAMS\TEA\*.*
; RMDir $SMPROGRAMS\TEA
Delete $INSTDIR\nsUninst.exe
Delete $INSTDIR\*.*
Delete "C:\drumlabooh-kits\*.*"
Expand Down

0 comments on commit 890d2f6

Please sign in to comment.