[Lazarus] How to get "external" FileVersion

Kjow antispammoni at gmail.com
Wed Mar 7 18:46:03 CET 2012

2012/3/7 Kjow <antispammoni at gmail.com>:
> 2012/3/7  <michael.vancanneyt at wisa.be>:
>> The below unit does what you need.
>> It can be made more simple, I still need to include the unix code in the
>> fileinfo unit.
>> Michael.
>> unit getvers;
> Thank you, but your unit extracts the build number from the same
> program where it's included, right?
> I need to extract the build number from an other file (like 'C:\test.exe' ).
> Or am I in wrong?
> Thank you,
> Kjow

Also replacing ParamStr(0) with 'C:\test.exe' I get (instead

With ParamStr(0) I get the build number of the program that launch
this code (of course).

Thank you,

More information about the Lazarus mailing list