diff --git a/installer.nsi b/installer.nsi index 4c032d33..69ffa335 100644 --- a/installer.nsi +++ b/installer.nsi @@ -2,21 +2,20 @@ !define NAME_FULL "VCV Rack ${EDITION_NAME} ${VERSION}" !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}" SetCompressor /solid "lzma" SetCompressorDictSize 8 CRCCheck On ; Default installation folder -!define RACK_DIR "Rack${EDITION}${VERSION_MAJOR}" InstallDir "$PROGRAMFILES\VCV\${RACK_DIR}" - ; Get installation folder from registry if available -!define INSTALL_REG "Software\VCV\Rack${EDITION}${VERSION_MAJOR}" 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 RequestExecutionLevel admin