I am testing building an installer that uses a [Files] section line like this:
Source: {code:GetDownloadURL}; DestDir: {app}; DestName: "download.zip"; ExternalSize: 0; Flags: download external extractarchive ignoreversion recursesubdirs createallsubdirs
I would like to be able to access this downloaded zip file later in the CurStepChanged event procedure (when CurStep = ssPostInstall) to do some other things with the downloaded file:
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then
begin
if not FileExists(ExpandConstant('{app}\config.json')) then
begin
// download.zip path isn't in {tmp} - how do I find it?
end;
end;
end;
It seems the downloaded file isn't in {tmp} -- how do I get to it?