Background: I've got these package that checks if an installer script (InnoSetup, NSIS, WiX) is part of the project, and if so, compiles the setup upon a successful compile.
Question: how do I access the version resource information of the current project (LazarusIDE.ActiveProject)?
I checked that it has a property Resources, which is TObject, but probably TAbstractProjectResources. But to get the version number this way, I guess I would need TProjectVersionInfo.
TLazProject has a ProjectInfoFile property, but manually reading it there wouldn't be the best approach if there was something more direct available.
How would I best access the project version number from the version resource from within an IDE package?