mirror of
https://github.com/heebijeebi/WinTango-Patcher.git
synced 2024-06-22 05:21:56 +02:00
Adding Mirror compatibility to Updater
This commit is contained in:
@@ -65,8 +65,10 @@ EndIf
|
||||
GUICtrlSetData($lblCurrent, $string_msgDownloading)
|
||||
|
||||
$sUrl = $AppVersionLatest[1]
|
||||
$sUrlMirror = $AppVersionLatest[2]
|
||||
$sDest = @TempDir & "\" & StringReplace($AppName, " ", "-") & "-LATEST.exe"
|
||||
_DownloadLatestVersion($sUrl, $sDest)
|
||||
If not FileExists($sDest) Then _DownloadLatestVersion($sUrlMirror, $sDest) ;retry with mirror
|
||||
|
||||
GUICtrlSetData($lblOverall, $string_msgDownloadDone)
|
||||
Sleep(2000)
|
||||
|
Reference in New Issue
Block a user