A workaround that (to my big surprise) seems to work:
1. Enable version information in your project;
2. Check the contents of the generated project rc file and copy that to a different file
and name that file for example 'myversioninfo.rc'
3. Disable version information in your project.
4. Include your custom resourcefile in the application's main sourcefile
5. Build the project with the newly created resourcefile.
I've tested it with this in my custom resource file (note the 3rd line that says ENY EXtra info):
1 VERSIONINFO
FILEVERSION 1,2,2,4
PRODUCTVERSION 1,2,2,4
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4"
{
VALUE "Comments", "Extra comments\000"
VALUE "CompanyName", "Extra company\000"
VALUE "ENY Extra Info", "Lazarus Info Demo\000"
VALUE "FileDescription", "Description\000"
VALUE "FileVersion", "1.2.2.4\000"
VALUE "InternalName", "Extra internal names\000"
VALUE "LegalCopyright", "COpyright\000"
VALUE "LegalTrademarks", "Extra legal trademarks\000"
VALUE "OriginalFilename", "Extra Original filename\000"
VALUE "ProductName", "Extra product name\000"
VALUE "ProductVersion", "1.2.2.4\000"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409, 0x04E4
}
}