Browse Source

On Windows, uninstall existing version silently before installing, since VST3 was changed from a file to a folder.

tags/v2.2.3
Andrew Belt 1 year ago
parent
commit
bff077f958
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      installer.nsi

+ 8
- 0
installer.nsi View File

@@ -78,6 +78,14 @@ Section "${NAME}" INSTALL_SECTION
SectionIn RO
SetOutPath "$INSTDIR"

# Uninstall existing version silently before installing.
# This is needed because the VST3 adapter used to be a file, and now it is a bundle (folder), and NSIS can't overwrite files with folders.
# "_?=" makes the uninstaller block until exit. Explanation at bottom of page:
# https://nsis.sourceforge.io/Docs/Chapter3.html
# Fails gracefully if uninstaller does not exist.
DetailPrint "Uninstalling existing version"
ExecWait '"$INSTDIR\Uninstall.exe" /S _?=$INSTDIR'

File /r "dist\${RACK_DIR}\*"

; Store installation folder


Loading…
Cancel
Save