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.

Version Information Component Overview

Applies to: ~>3.0

This project contains a component, TPJVersionInfo, which is a non-visual component that reads any version information contained in a 32 bit or 64 bit Windows executable file.

The component reads information from a designated file’s VERSIONINFO resource.

Run-time properties enable access to to version information. Properties enable:

Version numbers are encapsulated in TPJVersionNumber records. On Delphi 2006 or later this is an advanced record that can be directly assigned to a string and can be compared using the normal equality operators. Users of earlier Delphis can use helper functions to provide some of the functionality of the advanced form of the record.

The component makes calls to the Windows API when reading version information. Therefore the version information being read must follow the Microsoft guidelines. Be warned that not all software complies.

Compatibility

The component can be compiled with any Delphi compiler from Delphi 2 through to 11.3. It is compatible with 32 bit and 64 bit Windows targets.

This is a VCL component and so is not compatible with the FireMonkey framework.

The component not suitable for compilation on platoforms other than Windows.