Skip to content

Commit

Permalink
Merge 8a1edc7 into 4454cb4
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAgo committed Mar 6, 2021
2 parents 4454cb4 + 8a1edc7 commit b8747e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/build-wine/electron-cash.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ Function .onInit
ReadRegStr $R1 ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" DisplayName
${If} $R0 != ""
${AndIf} ${Cmd} ${|} MessageBox MB_YESNO|MB_ICONEXCLAMATION "$R1 has already been installed. $\nDo you want to remove the previous version before installing $(^Name)?" /SD IDNO IDYES ${|}
ExecWait $R0
GetFullPathName $R1 "$R0\.."
ExecWait '$R0 _?=$R1'
IfErrors 0 +2
Abort
${EndIf}

; Check for administrator rights
Expand Down

0 comments on commit b8747e5

Please sign in to comment.