Search code examples
inno-setuppascalscript

How to call MinimumSpace or Space value in Inno Setup


In Inno Setup we have WizardForm.DiskSpaceLabel.Caption which calls Space (MinimumSpace) via [mb] StringChange function. How to call Space or [mb] for custom TLabel?


Solution

  • It is the ExpandSetupMessage function that internally calls ExpandSetupMessageEx, which expands message arguments like [kb] or [mb]. Unfortunately, it is not published for Inno Setup Pascal Script.

    So, your manual evaluating of these arguments is the only possible way to have at this time.