简体   繁体   中英

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:

在此输入图像描述

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM