【发布时间】:2020-04-13 22:27:42
【问题描述】:
这是我的 Inno 设置代码。我要下载的“Scripts.rar”文件大约为 1 GB。如果我放置一个 25MB 的文件,它就可以工作。使用这个文件,它只是继续安装离线文件,跳过大“Scripts.rar”的下载。
我需要使用此设置下载非常大的文件。它们大约有 20 个文件,每个文件的大小为 1-3GB。 InnoSetup 给我带来了巨大的限制。
#pragma include __INCLUDE__ + ";" + ReadReg(HKLM, "Software\Mitrich Software\Inno Download Plugin", "InstallDir")
#pragma include __INCLUDE__ + ";" + "c:\lib\InnoDownloadPlugin"
#include <idp.iss>
[Code]
idpAddFile('https://drive.google.com/uc?export=download&confirm=hoYh&id=1UnIIBtjhDqtNuSKyeF5ce0grVlTnIIyz', ExpandConstant('{tmp}\Scripts.rar'));
//Download after "Ready" wizard page
idpDownloadAfter(wpReady);
end;
[files]
Source: "C:\Users\Dedric\Desktop\New folder (3)\GTA Compton Compiler\UnRAR.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Run]
Filename: "{tmp}\UnRAR.exe"; Parameters: "x ""{tmp}\Scripts.rar"" ""{code:GetDirPath}"""
Filename: "{code:GetDirPath}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
【问题讨论】:
标签: download inno-setup innodb pascal