Include Type String
{$R 'version.res'}
in your project. Create a version.rc file with your version information. You will need to create the resource yourself in older versions of Delphi using brcc32. In newer versions of Delphi you can use
{$R 'version.res' 'version.rc'}
so that the IDE automatically creates it for you.
The simplest version.rc will look something like this:
1 VERSIONINFO FILEVERSION 9999, 9999, 99, 18048 PRODUCTVERSION 9999, 9999, 99, 18048 FILEOS 0x00000004L // comment: VOS_WINDOWS32 FILETYPE VFT_APP { BLOCK "VarFileInfo" { VALUE "Translation", 0x409, 0x4E4 // comment: 0x4E4 = 1252 } BLOCK "StringFileInfo" { BLOCK "040904E4" { VALUE "CompanyName", "Company Name\0" VALUE "FileVersion", "9999.9999.99.18048\0" VALUE "LegalCopyright", "Copyright \0" VALUE "ProductName", "Product Name\0" VALUE "ProductVersion", "9999.9999.99.18048\0" VALUE "Homepage", "http://www.mydomain.com\0" } } }
For more information, see MSDN in the VERSIONINFO structure.
source share