Version info details displayed incorrectly in final exe

62 Views Asked by At

My requirement is to generate the version information via VersionInfo.rc file so have used the following file given below.

Reference link : https://helloacm.com/how-to-store-file-information-version-in-resource-file-for-delphi-projects/

1 VERSIONINFO
FILEVERSION 8,5,7,2
PRODUCTVERSION 8,5,7
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
  FILEFLAGS 0x1L
#else
  FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
   BLOCK "StringFileInfo"
   BEGIN
      BLOCK "040904B0"
      BEGIN
         VALUE "CompanyName", "Yug"
         VALUE "FileDescription", "Yug Infotech"
         VALUE "FileVersion", "4.5.7.3"
         VALUE "InternalName", "Yug"
         VALUE "LegalCopyright", "Yug © 2000-2022"  
         VALUE "LegalTrademarks", "Yug"
         VALUE "OriginalFilename", "YugInfotech.exe"
         VALUE "ProductName", "Yug Infotech" 
         VALUE "ProductVersion", "4.5.7.3"   
      END
   END
   BLOCK "VarFileInfo"
   BEGIN
      VALUE "Translation", 0x0409, 0x04B0
   END
END

Once the project is compiled I am seeing extra/wrong information being added to each values. eg: File Description expected was "Yug Infotech" but seeing extra information as shared in the screenshot. any help really appreciated. I doubt is this something to do with the code block or the hexadecimal values?

enter image description here

0

There are 0 best solutions below