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.

ProductVersionNumber property

Project: Version Information Component

Unit: PJVersionInfo

Class: TPJVersionInfo

Applies to: ~>3.0

property ProductVersionNumber: TPJVersionNumber;

Description

This read only property gets the version number of the product to which the file being examined relates.

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 dwProductVersionMS and dwProductVersionLS 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 dwProductVersionMS and dwProductVersionLS is as follows:

TPJVersionNumber field VS_FIXEDFILEINFO field
V1 HiWord(dwProductVersionMS)
V2 LoWord(dwProductVersionMS)
V3 HiWord(dwProductVersionLS)
V4 LoWord(dwProductVersionLS)

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

Footnote

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