[solved] exe has no version number -> even after setting VERSION in the project file
-
I set VERSION = 1.0.0.0 in my project-file but my executable file still has no version-number on Windows.
What am I doing wrong?
-
You can use QCoreApplication::setApplicationVersion ( const QString & version ) :)
-
-
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
@ -
How about try 1.0.0 instead of 1.0.0.0 ? I have no idea about the .rc file.
-
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.