当我尝试从 Inno Setup 下载插件下载文件时,它失败并出现以下错误:
当对此错误进行更多探索时,我发现从 Internet Explorer 设置中启用 TLS 1.1 或 TLS 1.2 效果很好。但是当我在 Windows XP 或 Windows Server 2003(它只支持 TLS 1.0,因此我无法启用 TLS 1.1 或 TLS 1.2)中运行代码时,它会失败。
代码:
idpAddFile('https://www.testwebsite.com/downloads/SetupFiles.zip',
ExpandConstant('{tmp}\SetupFiles.zip'));
idpDownloadAfter(wpSelectDir);