Indicate to the user that he's going to download the new version.

Indicate from the installer that the old version was detected and no settings will be deleted.
Closes #4320.
This commit is contained in:
sledgehammer999 2016-01-03 17:38:50 +02:00
commit e9547f7a1c
60 changed files with 132 additions and 6 deletions

View file

@ -4,13 +4,12 @@
FindFirst $0 $1 "$INSTDIR\uninst.exe"
FindClose $0
StrCmp $1 "" done
;Run the uninstaller of the previous install.
DetailPrint $(inst_unist)
DetailPrint $(inst_unist)
ExecWait '"$INSTDIR\uninst.exe" /S _?=$INSTDIR'
Delete "$INSTDIR\uninst.exe"
done:
SectionEnd
@ -177,7 +176,18 @@ Function .onInit
!insertmacro Init "installer"
!insertmacro MUI_LANGDLL_DISPLAY
;Search if qBittorrent is already installed.
FindFirst $0 $1 "$INSTDIR\uninst.exe"
FindClose $0
StrCmp $1 "" done
;Inform the user
MessageBox MB_OKCANCEL|MB_ICONINFORMATION $(inst_uninstall_question) /SD IDOK IDOK done
Quit
done:
FunctionEnd
Function check_instance