Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

FileVersionNumber property

Project: Version Information Component

Unit: PJVersionInfo

Class: TPJVersionInfo

Applies to: ~>3.0

property FileVersionNumber: TPJVersionNumber;

Description

This read only property gets the version number of the file being examined.

The version number is specified in the fixed file information part of the VERSIONINFO resource statement.

The value of this property is derived from the dwFileVersionMS and dwFileVersionLS members of the VS_FIXEDFILEINFO structure that can be accessed using the FixedFileInfo property. The relationship between the fields of the TPJVersionNumber record returned by this property and dwFileVersionMS and dwFileVersionLS is as follows:

TPJVersionNumber field VS_FIXEDFILEINFO field
V1 HiWord(dwFileVersionMS)
V2 LoWord(dwFileVersionMS)
V3 HiWord(dwFileVersionLS)
V4 LoWord(dwFileVersionLS)

The value of FileVersionNumber does not necessarily correspond to the string value given by the FileVersion† property as this is separately defined in the VERSIONINFO resource statement.

Footnote

† The FileVersion property is an alias for the StringFileInfo[] array property when ‘FileVersion’ is passed as the index