Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VersionInfo (Version.rc) with Delphi XE8

I have been upgrading my old Delphi 2007 code to Delphi XE8 where I observed very strange behavior on version information of the program.

Following is the Version.rc file I used to compile with test project.

1 VERSIONINFO
FILEVERSION 0,0,0,0
PRODUCTVERSION 0,0,0,3
FILEOS 0x4
FILETYPE 0x2
{
BLOCK "StringFileInfo"
{
    BLOCK "080904E4"
    {
        VALUE "CompanyName", "ABC Inc\000"
        VALUE "FileDescription", "Version Testing\000"
        VALUE "FileVersion", "0.0.0.0\000"
        VALUE "ProductName", "VERT001\000"
        VALUE "ProductVersion", "A003\000"
    }
}

BLOCK "VarFileInfo"
{
    VALUE "Translation", 0x0809 0x04E4
}
}

When I look version info from Windows 8.1 machine, I get this detail:

enter image description here

And When I look version info from Windows Server 2012, I get this detail:

enter image description here

Initially I though that it may be issue of FILEOS parameter and I changed it to VOS_NT_WINDOWS32 or even VOS_NT however It did not changed anything.

The same test project when compiled with Delphi 2007 shows version details correctly on both the OS.

Did anyone face similar issue in recent past ?

like image 670
DivX Avatar asked Oct 26 '25 19:10

DivX


1 Answers

After help from David I found that issue was of dproj file. When I specified <VerInfo_IncludeVerInfo>false</VerInfo_IncludeVerInfo>, VersionTest.exe started showing correct versions on both the OS.

like image 182
DivX Avatar answered Oct 29 '25 03:10

DivX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!