Bug #49692 mysql binaries on Windows do not include version information
Submitted: 14 Dec 2009 19:51 Modified: 12 Mar 2010 15:03
Reporter: Vladislav Vaintroub Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version: OS:Windows
Assigned to: CPU Architecture:Any

[14 Dec 2009 19:51] Vladislav Vaintroub
Description:
On Windows, it is common for software vendors to include version information into the binaries using special "resource files".  such a resource file includes
product version as 4 integers, file version, original file name, company name.

These information can be used for multiple purposes. One of these purposes is quality assurance, specifically Microsoft's winqual program (crash collector/analyzer) can "bucket" crashes much more precisely if version info is available. Since we're planning to participate in this program, we need version info in the executables.

A version info is embedded into the exe with a resource file (.rc), an example is given here:

http://msdn.microsoft.com/en-us/library/aa381058(VS.85).aspx

using CMake, it is sufficient just to include .rc file into the file list for 
ADD_EXECUTABLE or ADD_LIBRARY (for shared libraries)

How to repeat:
download mysql any version, install or unzip files.
In Explorer, switch to bin director.

Right click on a file, e.g mysqld.exe, look at "Details" tab, it is empty.
[12 Mar 2010 15:03] Vladislav Vaintroub
Fixed with cmake WL