void idpReportError() { ui.unlockButtons(); // allow user to click Retry or Next if(downloader.filesDownloaded() || (ui.errorDlgMode == DLG_NONE)) ui.clickNextButton(); // go to next page else if(ui.errorDlgMode == DLG_SIMPLE) { if(ui.messageBox(ui.msg("Download failed") + _T(": ") + downloader.getLastErrorStr() + _T("\r\n") + (ui.allowContinue ? ui.msg("Check your connection and click 'Retry' to try downloading the files again, or click 'Next' to continue installing anyway.") : ui.msg("Check your connection and click 'Retry' to try downloading the files again, or click 'Cancel' to terminate setup.")), ui.msg("Download failed"), MB_ICONWARNING | (ui.hasRetryButton ? MB_OK : MB_RETRYCANCEL)) == IDRETRY) idpStartDownload(); } else { ui.dllHandle = idpDllHandle; switch(ui.errorDialog(&downloader)) { case IDRETRY : idpStartDownload(); break; case IDIGNORE: ui.clickNextButton(); break; } } }
bool idpFilesDownloaded() { return downloader.filesDownloaded(); }