Following the recommendation of a few posts here at SO, I worked with InnoTools Downloader to try and install a third-party dependent for our application during the installation of the script in Inno settings.
Unfortunately, InnoTools Downloader does not update after a few years and begins to look incompatible with the current installation of Inno Tools (5.5.2 (u) on my machine currently). The PChar parameters in ITD have been replaced with PAnsiChar parameters, and when I try to execute various ITD_xxx procedures, it gives me a different degree of failure:
ITD_DownloadFiles gives a type mismatch error and will not compile in Inno SetupITD_DownloadFile compiles, but the file that is displayed has a length of 6 KB and does not work.
Has anyone received ITP to work with new versions of Unoode Inno (post-5.3.0)? Or do I need to look for another solution?
EDIT To clarify things a bit, I tried to go into the it_download.iss file and replace all instances of PChar with PAnsiChar. This led me to compilation errors when I first tried to integrate ITD with my setup script.
Here is an example Inno script section:
[Code] procedure InitializeWizard(); begin ITD_Init; // initialize the InnoTools Downloader // install 3rd party tool (ex. Git) from the internet. if ITD_DownloadFile('http://git-scm.com/download/win',expandconstant('{tmp}\GitInstaller.exe'))=ITDERR_SUCCESS then begin MsgBox(expandconstant('{tmp}\GitInstaller.exe'), mbInformation, MB_OK); Exec(ExpandConstant('{tmp}\GitInstaller.exe'), '', '', SW_SHOW, ewWaitUntilTerminated, tmpResult); end end;
When this is started, a dialog box will appear in which it will be "downloaded" and the file will be saved - on my machine it is in the subdirectory c: \ Users \\ AppData \ Local \ Temp. This file is 6 KB, unlike the file downloaded from http://git-scm.com/download/win , which is currently 15,221 KB.
The ITP_DownloadAfter method gives a similar result.