Re: [Lazarus] How to get external FileVersion

2012-03-08 Thread Sven Barth
Am 07.03.2012 19:06, schrieb Kjow: 2012/3/7 Hans-Peter Diettrichdrdiettri...@aol.com: Kjow schrieb: Are you sure that your other platforms support a standardized version information in their binaries? DoDi It's my first experience about managing file version numbering, do linux and mac

[Lazarus] How to get external FileVersion

2012-03-07 Thread Kjow
Hi all, I need to get the build number of an external program, but I don't know how to do. vinfo.pas method (http://lists.lazarus.freepascal.org/pipermail/lazarus/2010-July/054335.html) works very well for the program itself... but how can I read the build number of an other file exe? Thank

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Antonio Fortuny
works for Windows, not yet rewritten for LINUX. function ReadVersionInfo(const sProgram: string; Out vv: PTVersion) :Boolean; var Info: PVSFixedFileInfo; InfoSize: Cardinal; nHwnd: DWORD; BufferSize: DWORD; Buffer: Pointer; begin ZeroMemory(Info,

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Kjow
2012/3/7 Antonio Fortuny a.fort...@sitasoftware.lu: works for Windows, not yet rewritten for LINUX. Thank you! Unfortunately I need a cross-platform solution. Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread michael . vancanneyt
On Wed, 7 Mar 2012, Kjow wrote: 2012/3/7 Antonio Fortuny a.fort...@sitasoftware.lu: works for Windows, not yet rewritten for LINUX. Thank you! Unfortunately I need a cross-platform solution. Kjow The below unit does what you need. It can be made more simple, I still need to include the

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Kjow
2012/3/7 michael.vancann...@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

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Kjow
2012/3/7 Kjow antispamm...@gmail.com: 2012/3/7  michael.vancann...@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

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Hans-Peter Diettrich
Kjow schrieb: I need to extract the build number from an other file (like 'C:\test.exe' ). Are you sure that your other platforms support a standardized version information in their binaries? DoDi -- ___ Lazarus mailing list

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Kjow
2012/3/7 Hans-Peter Diettrich drdiettri...@aol.com: Kjow schrieb: Are you sure that your other platforms support a standardized version information in their binaries? DoDi It's my first experience about managing file version numbering, do linux and mac support it? Thank you, Kjow --

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Michael Van Canneyt
On Wed, 7 Mar 2012, Kjow wrote: 2012/3/7 michael.vancann...@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

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Michael Van Canneyt
On Wed, 7 Mar 2012, Kjow wrote: 2012/3/7 Kjow antispamm...@gmail.com: 2012/3/7  michael.vancann...@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

Re: [Lazarus] How to get external FileVersion

2012-03-07 Thread Kjow
2012/3/7 Michael Van Canneyt mich...@freepascal.org: Are you sure this program has version info ? On windows, the standard windows call is used to extract the info. Michael. I found the issue: if ProductVersion is setted, the procedure reads info here, else the procedure reads info from