Skip to content

Commit

Permalink
[Packaging] NSIS x64 reg-keys into proper place
Browse files Browse the repository at this point in the history
Closes: #455
  • Loading branch information
mhertz authored and cas-- committed Aug 24, 2024
1 parent af70ff1 commit 6ba23a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packaging/win/deluge-win-installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ FunctionEnd

# --- Installation sections ---
!define PROGRAM_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}"
!define PROGRAM_UNINST_ROOT_KEY "HKLM"
!define PROGRAM_UNINST_FILENAME "$INSTDIR\deluge-uninst.exe"

BrandingText "${PROGRAM_NAME} Windows Installer v${DELUGE_INSTALLER_VERSION}"
Expand All @@ -121,12 +120,15 @@ OutFile "${INSTALLER_FILENAME}"

!ifndef arch
InstallDir "$PROGRAMFILES64\Deluge"
!define PROGRAM_UNINST_ROOT_KEY "HKLM64"
!endif
!If "${arch}" == "x64"
InstallDir "$PROGRAMFILES64\Deluge"
!define PROGRAM_UNINST_ROOT_KEY "HKLM64"
!endIf
!If "${arch}" == "x86"
InstallDir "$PROGRAMFILES32\Deluge"
!define PROGRAM_UNINST_ROOT_KEY "HKLM"
!endIf

ShowInstDetails show
Expand Down

0 comments on commit 6ba23a8

Please sign in to comment.