Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [solved] exe has no version number -> even after setting VERSION in the project file
Qt 6.11 is out! See what's new in the release blog

[solved] exe has no version number -> even after setting VERSION in the project file

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 4 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hedge
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      You can use QCoreApplication::setApplicationVersion ( const QString & version ) :)

      Chuck

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        http://stackoverflow.com/questions/1125349/how-do-i-set-the-executable-attributes-with-qmake-for-a-c-project

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Moved this to tools since it is a qmake question.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hedge
            wrote on last edited by
            #5

            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 0x3fL

            FILEOS 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
            @

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chuck Gao
              wrote on last edited by
              #6

              How about try 1.0.0 instead of 1.0.0.0 ? I have no idea about the .rc file.

              Chuck

              1 Reply Last reply
              0
              • H Offline
                H Offline
                Hedge
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved