Browse Source

Clean up NSIS installer script.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
926a516a7a
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      installer.nsi

+ 4
- 5
installer.nsi View File

@@ -2,21 +2,20 @@


!define NAME_FULL "VCV Rack ${EDITION_NAME} ${VERSION}" !define NAME_FULL "VCV Rack ${EDITION_NAME} ${VERSION}"
!define NAME "VCV Rack ${EDITION} ${VERSION_MAJOR}" !define NAME "VCV Rack ${EDITION} ${VERSION_MAJOR}"
!define RACK_DIR "Rack${EDITION}${VERSION_MAJOR}"
!define INSTALL_REG "Software\VCV\Rack${EDITION}${VERSION_MAJOR}"
!define UNINSTALL_REG "Software\Microsoft\Windows\CurrentVersion\Uninstall\VCVRack${EDITION}${VERSION_MAJOR}"

Name "${NAME_FULL}" Name "${NAME_FULL}"
SetCompressor /solid "lzma" SetCompressor /solid "lzma"
SetCompressorDictSize 8 SetCompressorDictSize 8
CRCCheck On CRCCheck On


; Default installation folder ; Default installation folder
!define RACK_DIR "Rack${EDITION}${VERSION_MAJOR}"
InstallDir "$PROGRAMFILES\VCV\${RACK_DIR}" InstallDir "$PROGRAMFILES\VCV\${RACK_DIR}"

; Get installation folder from registry if available ; Get installation folder from registry if available
!define INSTALL_REG "Software\VCV\Rack${EDITION}${VERSION_MAJOR}"
InstallDirRegKey HKLM "${INSTALL_REG}" "" InstallDirRegKey HKLM "${INSTALL_REG}" ""


!define UNINSTALL_REG "Software\Microsoft\Windows\CurrentVersion\Uninstall\VCVRack${EDITION}${VERSION_MAJOR}"

; Request admin permissions so we can install to Program Files and add a registry entry ; Request admin permissions so we can install to Program Files and add a registry entry
RequestExecutionLevel admin RequestExecutionLevel admin




Loading…
Cancel
Save