inno-setuppascalscriptinno-tools-downloader

InnoTools Downloader is failing with “Sorry, the files could not be downloaded”


I have been attempting to make an installer for an application where the required files are on a server. I am using Inno Setup with InnoTools Downloader. After executing the setup I'm getting the following error:

Sorry, the files could not be downloaded, Click 'Retry' or try downloading the files again, or click 'Next' to continue installing anyway.

The script was working fine but all of a sudden its throwing me this error, I don't know what am I doing wrong. I have attached the picture and code below.

Error

procedure InitializeWizard();
var 
  i: Integer;
begin
   CreateTheWizardPages;
   for i := 1 to 10 do
   begin
     if down_URLs[i].url <> '' then 
       itd_addfile(down_URLs[i].url, ExpandConstant('{tmp}\'+down_URLs[i].target_exe));
   end;
   itd_downloadafter(wpReady);
end;

Any help either resolving this issue or pointing me to a solution would be appreciated.

Thank you


Solution

  • As you have found out, InnoTools Downloader does not support HTTPS. Instead of switching to an unencrypted HTTP, consider switching to Inno Download Plugin.

    Inno Download Plugin support HTTPS, in addition to other advantages. It's kind of a drop-in replacement for InnoTools Downloader. Only few changes are required.


    There is also DwinsHs. And Inno Setup 6.1 supports downloads natively (including HTTPS, but not FTP). See Install file from Internet in Inno Setup.