[solved] exe has no version number -> even after setting VERSION in the project file
-
Moved this to tools since it is a qmake question.
-
So, how do I add the fileversion in the .rc-file? I tried this but it didn't work either:
@VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK 0x3fLFILEOS 0x40004L
FILETYPE 0x0L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040704b0"
BEGIN
VALUE "CompanyName", ""
VALUE "FileDescription", ""
VALUE "FileVersion", "1.0.0.0"
VALUE "InternalName", "icon.rc"
VALUE "LegalCopyright", "Copyright (C) 2011"
VALUE "OriginalFilename", "icon.rc"
VALUE "ProductName", "My Tool"
VALUE "ProductVersion", "1.0.0.0"
END
END
END
@ -
The example Microsoft provided was wrong -> http://msdn.microsoft.com/en-us/library/aa381058(VS.85).aspx
I had to include <windows.h> In order to add the file-version
It works now.