I need to parse the file version and product version from windows exe and msi files.
Could you point me to the file specification or the library (preferably in Java) that does that?
UPDATE:
It turns out I cannot use winapi, as the code needs to run on linux as well…
You could use
GetFileVersionInfoSizeandGetFileVersionInfofunctions to get file version and product version. I’m not guru in Java but as far as I know there is the possibility to use WinAPI functions.