[Lazarus] Retrieve VersionInfo at runtime

Paul Ishenin ip at kmiac.ru
Fri Jan 22 08:11:06 CET 2010

22.01.2010 13:56, Brad Campbell wrote:
> Graeme Geldenhuys wrote:
>> I simply ignore the "version information" tab in the Project Settings
>> dialog, because it only works for one out of all the supported platforms
>> (windows).
> I've been thinking about looking at integrating it in somewhere as a
> resource.
> I currently integrate my Changelog and Release notes into the binary as
> compressed resources using lazres. I just decompress them into streams
> as required and use loadfromstream() in memo components to display them.
> If I can figure out how to integrate simple resources using the new fpc
> resource stuff, I'll do it that way.

Version info from the project version info tab is usable on all platform 
and there is a cross-platform way to retrieve it but it requires deep 
knowledge of windows resources. I can create a class which will retrieve 
all the written info from the version resources. There are no big 
problems here. The only question I have whether it is a part of LCL or 
more belongs to RTL/FCL? I think that the proper place for such a class 
is somewhere inside fcl-res package but the goal of that package differ 
a bit.

Best regards,
Paul Ishenin.

More information about the Lazarus mailing list