I am currently using Inno Download Plugin to download files for my installer, the biggest problem with this is that it faila to download the file correctly. Because of many reasons like bad connection. I would like to add an alternative method to download files, so the user may chose if he want regular way, or a torrent way. I know that I can use aria2c.exe app (https://aria2.github.io/), can someone help me with implementing it to the code of inno setup?
What I need is to download a 7z file using torrent (aria2.exe) and then unpack the contents to defined folder in {{app}} location.
Good code example is probably all I need.
Just run the
aria2c
, redirect its output to a file and poll the file contents for progress of the download.It's actually very similar to my solution for this answer:
Inno Setup - Make Inno Setup Installer report its installation progress status to master installer
The
BufferToAnsi
and its use is based on:Inno Setup LoadStringFromFile fails when file is open in another process