[Files] Combining flags external and download with parameter Tasks

17 views
Skip to first unread message

Michal TURZO

unread,
Sep 9, 2025, 7:12:44 AMSep 9
to innosetup
I have problem when i combine flags external and download with parameter Tasks.
- The file is not downloaded on setup initialisation
- When it should be extracted, I get error:
Internal error: Unexpected Download flag.

how to reproduce:
Add Tasks parameter to last [File] in Examples/DownloadFiles.iss:
; This archive will be downloaded and extracted without verification
Source: "https://github.com/jrsoftware/issrc/archive/refs/heads/main.zip"; DestName: "issrc-main.zip"; DestDir: "{app}"; \
  ExternalSize: 15_000_000; Flags: external download extractarchive recursesubdirs ignoreversion
->
; This archive will be downloaded and extracted without verification
Source: "https://github.com/jrsoftware/issrc/archive/refs/heads/main.zip"; DestName: "issrc-main.zip"; DestDir: "{app}"; \
  ExternalSize: 15_000_000; Flags: external download extractarchive recursesubdirs ignoreversion; Tasks: SomeTask

Am I doing something wrong, or it is a bug?

Martijn Laan

unread,
Sep 9, 2025, 7:33:36 AMSep 9
to innosetup
Looks like a bug, will check it out, thanks for reporting.

I suppose that when it checks if there are archives to download, it misses this one because of failing to recognize the task is selected.

Greetings,
Martijn 

Op di 9 sep , Michal TURZO <michal...@gmail.com> schreef:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/436b772d-46f1-40d8-89f3-8486246d7510n%40googlegroups.com.

Michal TURZO

unread,
Sep 9, 2025, 8:31:17 AMSep 9
to innosetup
I found a workaround. 
Instead of Task, I used Check parameter. And check for task from provided function. Something like:
[Files]
Source: ...; Check:CheckSomeTask
[Code]
function CheckSomeTask(): Boolean;
begin
  Result:=WizardIsTaskSelected('SomeTask');
end;
Dátum: utorok 9. septembra 2025, čas: 13:33:36 UTC+2, odosielateľ: Martijn Laan

Martijn Laan

unread,
Sep 9, 2025, 11:17:05 AMSep 9
to innosetup
Hi,

Op 9-9-2025 om 14:31 schreef Michal TURZO:
I found a workaround. 
Instead of Task, I used Check parameter. And check for task from provided function

Ok, great 👍 In the meantime, I also found and fixed the issue (it was basically a typo), so it should work with Tasks as well in the next version, which was already scheduled for release tomorrow. 

Greetings,
Martijn

Michal TURZO

unread,
Sep 9, 2025, 11:21:38 AMSep 9
to inno...@googlegroups.com
great! thanks!

                                Michal TURZO


--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/dhVIroYiUJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/175743101874.7.17049235942296089638.895517908%40innosetup.nl.
Reply all
Reply to author
Forward
0 new messages