IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "Überprüfung des SSL-Zertifikats fehlgeschlagen."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "Ha fallado la comprobación del certificado SSL."
IDS_INTEG_CHECK_TITLE "Verificando integridad del paquete..."
IDS_INTEG_CHECK_FAIL "El paquete no ha pasado la comprobación de integridad, puede haber sido alterado o estar corrupto. No se recomienda ejecutarlo."
+ IDS_INTERRUPTED_DOWNLOAD "Se ha interrumpido la descarga por un error de red. Comprueba la conexión a Internet."
+ IDS_UNABLE_TO_WRITE "No se ha podido escribir en el disco duro, es posible que no quede espacio libre."
END
IDS_CERT_DOES_NOT_MATCH "La vérification du certificat SSL a échoué."
IDS_INTEG_CHECK_TITLE "Vérification de l'intégrité du paquet..."
IDS_INTEG_CHECK_FAIL "Le contrôle d'intégrité du paquet a échoué, il se peut qu'il ait été corrompu ou altéré au cours du téléchargement. L'exécution du programme n'est pas recommandée."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "Verificarea certificatului SSL a eșuat."
IDS_INTEG_CHECK_TITLE "Se verifică integritatea pachetului…"
IDS_INTEG_CHECK_FAIL "Pachetul nu a trecut de verificarea de integritate. Utilizarea programului nu este recomandată."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "Ошибка проверки SSL сертификата."
IDS_INTEG_CHECK_TITLE "Проверка целостности приложения..."
IDS_INTEG_CHECK_FAIL "Приложение не прошло проверку целостности, возможно оно было повреждено или подменено. Запуск приложения не рекомендуется."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL onay belgesi doğrulaması başarısız."
IDS_INTEG_CHECK_TITLE "Paket bütünlüğü doğrulanıyor..."
IDS_INTEG_CHECK_FAIL "Paket bütünlük denetimini geçmedi, bozulmuş veyâ indirme esnâsında oynanmış olabilir. Yazılımı çalıştırmak önerilmez."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL certificate verification failed."
IDS_INTEG_CHECK_TITLE "Verifying package integrity..."
IDS_INTEG_CHECK_FAIL "The package did not pass the integrity check, it may have been corrupted or tampered with during downloading. Running the software is not recommended."
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
IDS_CERT_DOES_NOT_MATCH "SSL 憑證驗證失敗。"
IDS_INTEG_CHECK_TITLE "驗證套裝軟體的完整性..."
IDS_INTEG_CHECK_FAIL "包沒有通過完整性檢查,它可能已損壞,或者在下載過程中篡改。建議您不要運行該軟體。"
+ IDS_INTERRUPTED_DOWNLOAD "The download was interrupted. Check connection to Internet."
+ IDS_UNABLE_TO_WRITE "Unable to write to disk. Disk may be at capacity."
END
do
{
- if (!InternetReadFile(hFile, lpBuffer, _countof(lpBuffer), &dwBytesRead)) goto end;
- if (!WriteFile(hOut, &lpBuffer[0], dwBytesRead, &dwBytesWritten, NULL)) goto end;
+ if (!InternetReadFile(hFile, lpBuffer, _countof(lpBuffer), &dwBytesRead))
+ {
+ WCHAR szMsgText[MAX_STR_LEN];
+
+ if (!LoadStringW(hInst, IDS_INTERRUPTED_DOWNLOAD, szMsgText, _countof(szMsgText)))
+ goto end;
+
+ MessageBoxW(hMainWnd, szMsgText, NULL, MB_OK | MB_ICONERROR);
+ goto end;
+ }
+ if (!WriteFile(hOut, &lpBuffer[0], dwBytesRead, &dwBytesWritten, NULL))
+ {
+ WCHAR szMsgText[MAX_STR_LEN];
+
+ if (!LoadStringW(hInst, IDS_UNABLE_TO_WRITE, szMsgText, _countof(szMsgText)))
+ goto end;
+
+ MessageBoxW(hMainWnd, szMsgText, NULL, MB_OK | MB_ICONERROR);
+ goto end;
+ }
dwCurrentBytesRead += dwBytesRead;
IBindStatusCallback_OnProgress(dl, dwCurrentBytesRead, dwContentLen, 0, AppInfo->szUrlDownload);
}
#define IDS_CERT_DOES_NOT_MATCH 120
#define IDS_INTEG_CHECK_TITLE 121
#define IDS_INTEG_CHECK_FAIL 122
+#define IDS_INTERRUPTED_DOWNLOAD 123
+#define IDS_UNABLE_TO_WRITE 124
/* Tooltips */
#define IDS_TOOLTIP_INSTALL 200