Accessing version/rel/build info from EXE
Posted on 1998-03-05
In Delphi 3, I have started using the Project VersionInfo facility to number successive versions/builds of an application. However, I see no easy-to-use means to access these data at run time so I can display this info in a Help|About box, for example. I see in the WIN32S.HLP a reference to a control block (a Resource called VersionInfo) that contains this, but I don't know how to access it from Delphi if there's no built-in component that accesses that block.
Any clues on how to either (A) get these fields easily from a built-in component or function that I've overlooked, or (B) write some code to access the info from a lower-level source, or (C) get some public domain component that serves this purpose? I'd be happy to either get the info directly from some in-memory source once the program is running or re-read the running EXE file to get the data.