Similar to this question:
How to set the progress bar value in the [Run] section of the Inno Setup install script?
When the Inno Setup gets to the [Run]
section, the progress bar shows at 100% and stops in this position.
I have many files that I install in this Run
section, which I wish to restart the progress bar and control it, as it goes installing each program.
The status message is easy to change (StatusMsg
), but the progress I'm missing something. Could you guys help me out, please?
Example:
[Run]
Filename: "msiexec.exe"; Parameters: "/i ""msxml.msi"" /quiet"; \
StatusMsg: "MSXML..."; Flags: runascurrentuser
Filename: "msiexec.exe"; Parameters: "/i ""capicom_dc_sdk.msi"" /quiet"; \
StatusMsg: "CAPICOM..."; Flags: runascurrentuser
Since I want to control the progress bar during it's installation, I don't know what to do. I thought in maybe using BeforeInstall
parameter, creating a code to set the progress bar to 0 by doing something like WizardForm.ProgressGauge.Position = 0;
and in the AfterInstall
parameter, the opposite, WizardForm.ProgressGauge.Position = 100;
, but how to change during the installation?
Thanks.