Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup built-in control names

Tags:

inno-setup

I frequently find that I need the names of built-in controls e.g. WizardForm.StatusLabel. Is there a definitive reference to all the built-in control names somewhere, and if not, how do you go about finding these? As a worked example, how would I find the name of the control that shows the filename that is being extracted on the WizardForm.InstallingPage i.e. the label underneath the WizardForm.StatusLabel?

like image 457
Robert Wigley Avatar asked Oct 16 '25 00:10

Robert Wigley


1 Answers

The only public documentation is TWizardForm reference. It lists names of all controls. But in a rather random order.

I find it way easier to check Setup.WizardForm.dfm in Inno Setup source code repository. It defines the controls in their hierarchy. So if you search for InstallingPage, you will find that there are these controls:

object FInstallingPage: TNewNotebookPage
  object FFilenameLabel: TNewStaticText
    ...
  end
  object FStatusLabel: TNewStaticText
    ...
  end
  object FProgressGauge: TNewProgressBar
    ...
  end
end 

For a use in Pascal Script, drop the F prefix (e.g. instead of FFilenameLabel, use FilenameLabel).

like image 61
Martin Prikryl Avatar answered Oct 19 '25 01:10

Martin Prikryl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!