System.SysUtils.GetProductVersion

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetProductVersion(const AFileName: string; var AMajor, AMinor, ABuild: Cardinal): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall GetProductVersion(const System::UnicodeString AFileName, unsigned &AMajor, unsigned &AMinor, unsigned &ABuild);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Retrieves the version information of the product with which a file specified as AFileName was first distributed.

If successfull, GetProductVersion sets the values of AMajor, AMinor, and ABuild parameters accordingly and returns True. Otherwise, GetProductVersion returns False.

Platform Support

Only supported on Windows.

See Also