[Lazarus] Version information under Linux
shoKwave
shokwave at gmx.net
Thu Jun 4 12:46:43 CEST 2009
Torsten Bonde Christiansen schrieb:
> Michael Van Canneyt wrote:
>>
>> Version 2.3.1 of the compiler supports all this on linux.
> If the compiler supports it, how can the information be extracted at
> runtime?
>
> Regards,
> Torsten Bonde Christiansen.
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
uses FileInfo;
var info:TFileVersionInfo;
begin
info := TFileVersionInfo.Create(nil);
info.fileName:=Application.Params[0];
showmessage(info.VersionStrings.Text);
end;
Works for me under Windows.
Regards,
Ingo
More information about the Lazarus
mailing list