Sign in Join
FPDoc Onlineexperiment

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

EVersionInfoclassException class for version information errors
TFileVersionInfoclassHigh-level component for accessing file version information
TProgramVersionrecordRecord type for storing four-part version numbers
TVersionInfoclassLow-level class for accessing version information from executable files

Procedures and functions

assign(TProgramVersion):TVersionQuadoperatorAssignment operator from program version to version quad
assign(TVersionQuad):TProgramVersionoperatorAssignment operator from version quad to program version
CompareProgramVersionfunctionCompares two program version records
CompareVersionQuadsfunctionCompares two version quad arrays
GetProgramVersionfunctionExtracts version information from the current executable
NewerVersionfunctionDetermines if one version is newer than another
ProgramVersionToStrfunctionConverts a program version record to string representation
StrToProgramVersionfunctionConverts a string to a program version record
StrToVersionQuadfunctionConverts a string to a version quad
TryStrToProgramVersionfunctionAttempts to convert a string to a program version record
TryStrToVersionQuadfunctionAttempts to convert a string to a version quad
VersionQuadToStrfunctionConverts a version quad to string representation

Types

TVersionCompareenumerationResult of version comparison operations
TVersionQuadtypeArray type for storing four-part version numbers

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.