Isn't it possible to create your own resource file and include it in the program?(Brief explanation in the wiki.)
1 VERSIONINFOFILEVERSION 1,2,2,4PRODUCTVERSION 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 }}
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 sourcefile5. 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):Code: [Select]1 VERSIONINFOFILEVERSION 1,2,2,4PRODUCTVERSION 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" ..... } } BLOCK "VarFileInfo" { VALUE "Translation", 0x0409, 0x04E4 }}
1 VERSIONINFOFILEVERSION 1,2,2,4PRODUCTVERSION 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" ..... } } BLOCK "VarFileInfo" { VALUE "Translation", 0x0409, 0x04E4 }}
I have posted the source for the finished code on my blog, hopefully it will be of some use to others, if there are no bugs lurking in it .http://devblog.brahmancreations.com/content/free-pascal-win32-versioninfopas.