TRsFileInfo
Created by Jeff Hiscock
Created on 02/24/00 7:17 PM
Retrieve basic version information from the file info resource of an excutable , dll etc…
Tcomponent
Name |
Data Type |
Notes |
MajorVersion |
String |
Major version of the image |
MinorVersion |
String |
Minor version of the image |
ReleaseNumber |
String |
Release number of the image |
BuildNumber |
String |
Build Number of the image |
VersionString |
String |
All of the above in the x.x.x.x order in the order as above |
SimpleVersion |
String |
Major and Minor Version in the x.x format |
Name |
Data Type |
Notes |
FileName |
String |
Filename for the image |
UseExe |
Bool |
If true, if the filename property is NULL the File that the component is linked into is used |
Declaration |
Notes |
void __fastcall Execute () |
Gets the version information and populates all of the public properties |
Declaration |
Notes |
OnNoFile |
TnotifyEvent -- If not file name is given and UseExe is false this event is fired. |
OnReadHeaderError |
TnotifyEvent -- If the read header call fails. This will happen if it is 16 bit image or if the file does not have a version info resource. |
OnGetFileInfoError |
TnotifyEvent – As above |
This component could do a whole lot more. Currently just gets the version information as that is all we needed. Please modify as required.