Unit 'FileInfo' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TFileVersionInfo

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

High-level component for accessing file version information

Declaration

Source position: fileinfo.pp line 58

type TFileVersionInfo = class(TComponent)

public

  constructor Create(); override;

  

Creates a new TFileVersionInfo component

  destructor Destroy; override;

  

Destroys the TFileVersionInfo component

  procedure Loaded; override;

  

Called after component loading is complete

  procedure ReadFileInfo;

  

Reads version information from the specified file

published

  property Enabled: Boolean; [rw]

  

Controls automatic reading of version information

  property FileName: string; [rw]

  

File name to read version information from

  property VersionStrings: TStrings; [r]

  

Extracted version information strings

  property Filter: TStrings; [rw]

  

List of version string keys to extract

  property Translation: string; [rw]

  

Language and code page identifier for version strings

  property TranslationOnly: Boolean; [rw]

  

Controls behavior when specified translation is not found

end;

Inheritance

TFileVersionInfo

  

High-level component for accessing file version information

|

TComponent

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

Description

TFileVersionInfo is a component that provides easy access to version information from executable files. It automatically extracts version strings and supports filtering by key names and translations. The component can be enabled to automatically read version information when properties change.

Errors

Raises EVersionInfo when translation is not found and TranslationOnly is True.

See also

TVersionInfo

  

Low-level class for accessing version information from executable files

EVersionInfo

  

Exception class for version information errors


Documentation generated on: Dec 15 2025