Liebe Profis,
ich lade seit über einem Jahr sehr häufig den jeweils aktuellen Offline-Installer für Avast Free Antivirus mittels AutoIt herunter.
Dafür nutze ich folgenden Link: "https://bits.avcdn.net/productfamily_ANTIVIRUS/insttype_FREE/platform_WIN/installertype_FULL/build_RELEASE/cookie_mmm_ava_998_999_000_m"
Bisher klappte dies auch stets einwandfrei, seit ein paar Tagen wird jedoch nichts mehr heruntergeladen. der Programmcode (s.u.) ist 1:1 aus der Hilfe und wurde nicht verändert!
Gibt man die URL direkt in den Browser (getestet mit FireFox und Opera) ein, startet der Download ohne Probleme.
Da der Download der Virusdefinitionen ("https://www.avast.com/de-de/download-thank-you.php?product=VPS18&locale=de-de&direct=1") mit AutoIt nach wie vor einwandfrei funktioniert,
kann ich mir das nicht erklären. Wäre jemand mal so nett zu testen, ob der Fehler nur bei mir auftritt / bzw. hat jemand eine Idee, wie das Problem(chen) lösen kann, ich habe leider überhaupt keinen Schimmer.
Besten Dank im Vorraus! MfG Kilo
#include <InetConstants.au3>
#include <MsgBoxConstants.au3>
Avast_Offline_Installer()
Func Avast_Offline_Installer()
; Save the downloaded file to the temporary folder.
Local $sFilePath = @TempDir & "\Avast_Offline.exe"
; Download the file in the background with the selected option of 'force a reload from the remote site.'
Local $hDownload = InetGet("https://bits.avcdn.net/productfamily_ANTIVIRUS/insttype_FREE/platform_WIN/installertype_FULL/build_RELEASE/cookie_mmm_ava_998_999_000_m", @TempDir & "\Avast_Offline.exe", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)
; Wait for the download to complete by monitoring when the 2nd index value of InetGetInfo returns True.
Do
Sleep(250)
Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE)
; Retrieve the number of total bytes received and the filesize.
Local $iBytesSize = InetGetInfo($hDownload, $INET_DOWNLOADREAD)
Local $iFileSize = FileGetSize($sFilePath)
; Close the handle returned by InetGet.
InetClose($hDownload)
; Display details about the total number of bytes read and the filesize.
MsgBox($MB_SYSTEMMODAL, "", "The total download size: " & $iBytesSize & @CRLF & _
"The total filesize: " & $iFileSize)
EndFunc