I am using Inno Setup 5.4.2 (a) to create a bootloader. Now, I finally realized that, based on the selected components, the bootloader downloads the necessary files for the components, and then installs them.
However, because you need to download component files, this requires 0.1 MB of disk space, and I would like it to show each individual file size that will be loaded on the selection components screen.
I am using InnoTools Downloader from http://www.sherlocksoftware.org and I configured the function to get the file size:
[Code] var setup: Double; drivers: Double; function ITD_GetFileSize(const url: string; var size:cardinal): boolean; procedure InitializeWizard(); begin itd_init; ITD_GetFileSize('http://www.domain.com/file1.exe',setup); ITD_GetFileSize('http://www.domain.com/drivers.exe',drivers); end;
Files are downloaded after selecting components (of course). The translation file I found
ComponentSize1=%1 KB ComponentSize2=%1 MB
I was looking for a method on how I can do this so that the file size is set correctly but cannot find it. With custom messages, I can install it once, but then it will not work for both files. I cannot find examples for using custom messages like this, passing it a variable. Can any body help me with this?
thanks
source share