Skip to content

Commit

Permalink
Open the installer download page when the wrong bitness is detected
Browse files Browse the repository at this point in the history
This way the user can download the correct installer faster.
  • Loading branch information
Abestanis committed Nov 14, 2022
1 parent 14134ac commit 0ab07a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions installer/Utils.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,14 @@ FunctionEnd
!if ${PLATFORM} == x86
MessageBox MB_OKCANCEL|MB_ICONINFORMATION \
"$(Install64On32BitWarning)" /SD IDOK IDOK Continue
${OpenURL} ${URL_DOWNLOAD}
Quit
Continue:
!endif
${else}
!if ${PLATFORM} == x64
MessageBox MB_ICONSTOP "$(Install32On64BitError)" /SD IDOK
${OpenURL} ${URL_DOWNLOAD}
Quit
!endif
${endif}
Expand Down
1 change: 1 addition & 0 deletions installer/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Var RunningFromInstaller # Installer started uninstaller using /uninstall parame
!define URL_HELP_LINK "https://github.com/gyunaev/birdtray/wiki" # "Support Information" link
!define URL_UPDATE_INFO "https://github.com/gyunaev/birdtray/releases" # "Product Updates" link
!define URL_INFO_ABOUT "https://www.ulduzsoft.com/" # "Publisher" link
!define URL_DOWNLOAD "https://github.com/gyunaev/birdtray/releases/latest"
!define MIN_WINDOWS_VER "XP"

# Paths
Expand Down

0 comments on commit 0ab07a5

Please sign in to comment.