[Lazarus] How to get the package version from a LPK file?

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Nov 29 07:55:39 CET 2011


On 29/11/2011, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> And to be clear, as a programmer, this is the API interface I would
> expect to use... which I don't think is unreasonable. Obviously this
> doesn't work, but hey, that's XML for you.
>
>     ReadXMLFile(VXML, ExtractFilePath(ParamStr(0)) + 'LazSolutionsDT.lpk');
>     n := vxml.FindNode('/Config/Package/Version');
>     n.Attributes.GetNamedItem('Major');
>     n.Attributes.GetNamedItem('Minor');



PS:
I'm very curious to know what the actual solution is though.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net




More information about the Lazarus mailing list