{app} directory and istool_download
Status: Inactive
Brought to you by:
bhenden
Hello,
First of all thank you for this wonderful tool! :)
Is it somehow possible to create the {app} folder before download is started, or to start download, after the {app} folder has been created?
Thanks!
Vitaly
Logged In: NO
I've been looking into the very same problem today!
It took a few hours of reading and experimentation to understand what happens :)
You can use this snippet (remove the comments, just in case...):
function NextButtonClick(CurPage: Integer): Boolean;
begin
if (CurPage = wpReady) then // This is the page where my downloads start
begin
ForceDirectories(ExpandConstant('{app}')); // This creates the main folder, this is where I download my stuff, customize it for your needs
Result := ISTool_Download(CurPage) // U know ;)
else
Result := True; // At any other page, we just continue
end;