Reputation: 21
On some of the systems (mostly Windows 7), we are getting Download failed: An error occurred in the secure channel support
error while downloading files using Inno Download Plugin. We tried adding idpSetOption('AllowContinue', '1');
found from one of the answers but that did not solve the issue. The files we are downloading are not super critical, so we can ignore error if downloading fails and setup should continue.
Minimal, Reproducible Example
#include "D:\idp.iss"
[Setup]
PrivilegesRequired=admin
AppName=My Project
AppVersion=2.0
DefaultDirName={pf}\My Project
DefaultGroupName=My Project
UninstallDisplayIcon={app}\My Project.exe
Compression=lzma2
SolidCompression=yes
OutputDir=D:\setup
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
OutputBaseFilename=Setup
[Files]
Source: "My Project.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{tmp}\online.exe"; DestDir: "{commondesktop}"; Flags: external; ExternalSize: 1736547
Source: "{tmp}\offline.exe"; DestDir: "{commondesktop}"; Flags: external; ExternalSize: 166148
[Icons]
Name: "{group}\My Project"; Filename: "{app}\My Project.exe"; WorkingDir: "{app}"; Comment: "Launch My Project"
[Run]
Filename: "{app}\My Project.EXE"; Description: "My Project"; Flags: postinstall
[Code]
procedure InitializeWizard();
begin
idpSetOption('AllowContinue', '1');
idpAddFileSize('https://download.mysite.com/download/online.exe', ExpandConstant('{tmp}\online.exe'), 1736547);
idpAddFileSize('https://download.mysite.com/download/offline.exe', ExpandConstant('{tmp}\offline.exe'), 166148);
idpDownloadAfter(wpReady);
end;
Upvotes: 0
Views: 127