mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 18:47:37 -07:00
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:
parent
c700b8c5c5
commit
e9547f7a1c
60 changed files with 132 additions and 6 deletions
20
dist/windows/installer.nsi
vendored
20
dist/windows/installer.nsi
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue