inno-setuppascalscript

How does the custom page Values[] array work in Inno Setup?


For example:

  1. Panel
  2. Label
  3. Radio
  4. Radio
  5. Radio
  6. Panel
  7. Label
  8. Radio
  9. Radio
  10. Label
  11. Combo
  12. Label
  13. Label
  14. Text
  15. Button

Does the Values array match all of the controls on the page, or only the radio, combo, text controls?


Solution

  • The generic custom page has no Values property.

    Only special implementations of a custom page do. And their meaning differs with the implementation.


    If you want to refer to a value of a custom control added to a generic custom page, use the instance of the control. There's no (nice) way to refer to the control value via the container page.

    That usually means that instances of controls you want to query later have to be global variables. See Reading values from custom Inno Setup wizard pages without using global variables or Access to custom control from OnClick event of another control in Inno Setup.