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:
And When I look version info from Windows Server 2012, I get this detail:
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 ?
{$R *.res}
with{$R MyProjectName.res}
which I suspect is important. – David Heffernandpr
file includes an outdated.res
file. Everything was fine under Win7 but not Win10. – Edwin Yip