FileInfo unit
File and program version information utilities
The FileInfo unit provides classes and utilities for extracting and manipulating version information from executable files and modules.
It includes both low-level access through TVersionInfo and high-level component-based access through
TFileVersionInfo.
The unit also provides convenience functions for version comparison (CompareVersionQuads, CompareProgramVersion, NewerVersion), string conversion (VersionQuadToStr, ProgramversionToStr, StrToVersionQuad, StrToProgramVersion), and version extraction (GetProgramVersion).
Classes and records
EVersionInfo | class | Exception class for version information errors |
TFileVersionInfo | class | High-level component for accessing file version information |
TProgramVersion | record | Record type for storing four-part version numbers |
TVersionInfo | class | Low-level class for accessing version information from executable files |
Procedures and functions
assign(TProgramVersion):TVersionQuad | operator | Assignment operator from program version to version quad |
assign(TVersionQuad):TProgramVersion | operator | Assignment operator from version quad to program version |
CompareProgramVersion | function | Compares two program version records |
CompareVersionQuads | function | Compares two version quad arrays |
GetProgramVersion | function | Extracts version information from the current executable |
NewerVersion | function | Determines if one version is newer than another |
ProgramVersionToStr | function | Converts a program version record to string representation |
StrToProgramVersion | function | Converts a string to a program version record |
StrToVersionQuad | function | Converts a string to a version quad |
TryStrToProgramVersion | function | Attempts to convert a string to a program version record |
TryStrToVersionQuad | function | Attempts to convert a string to a version quad |
VersionQuadToStr | function | Converts a version quad to string representation |
Types
TVersionCompare | enumeration | Result of version comparison operations |
TVersionQuad | type | Array type for storing four-part version numbers |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
