Is64BitInstallMode for conditional downloads

124 views
Skip to first unread message

Nelson Belfort

unread,
Mar 19, 2017, 2:25:39 AM3/19/17
to Inno Download Plugin
Where can I program on the plug-in to condition files to download?

I can condition files on the install, lets say with Check: Is64BitInstallMode... example:

Source: "{#ver64}APPx64.exe"; DestDir: "{app}"; Check: Is64BitInstallMode
or
Source: "{#ver64}APPx86.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode

I tried to combine:

Source: "{tmp}\APPx64.exe"; DestDir: "{app}";  Check: Is64BitInstallMode;  Flags: external; ExternalSize: 804864
but it still download files on x86 PC

I don't want to download unnecessary files.

Thanks in advance,

Nelson

Mitrich K

unread,
Mar 21, 2017, 11:47:06 AM3/21/17
to Inno Download Plugin
You should use if...then...else when calling idpAddFile

if Is64BitInstallMode then
begin
    idpAddFile
('http://www.xxx.yyy/file64.zzz', ExpandConstant('{tmp}\file64.zzz'));
end
else
begin
    idpAddFile
('http://www.xxx.yyy/file32.zzz', ExpandConstant('{tmp}\file32.zzz'));
end;

Reply all
Reply to author
Forward
0 new messages