I have a few install scripts, with almost the same functionality. I separated same functions to include file with common code, but from time to time I need to override some of those.
Unfortunately, override
at the end as in Delphi doesn't help:
function NextButtonClick(CurPageID: Integer): Boolean; override;
That is not possible. One thing is that e.g. the NextButtonClick
which you mentioned is meant to be the event method whose you do not override; the other is that Inno Setup Pascal Script doesn't support method overriding as such.
The only reliable workaround I can think of is to RY (from DRY), by separating event methods from your common code.