Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtIF: Adding version info in windows
Forum Updated to NodeBB v4.3 + New Features

QtIF: Adding version info in windows

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 4 Posters 2.4k 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.
  • S Offline
    S Offline
    Schenk
    wrote on last edited by
    #1

    Hi,

    how can i add version infos in the setup.exe in windows. There is no info in properties> details in windows.

    My RC-file:

    #include "version.h"
     
    VS_VERSION_INFO VERSIONINFO
    FILEVERSION     FILEVERSION_STR
    PRODUCTVERSION  PRODUCTVERSION_STR
    BEGIN
        BLOCK "StringFileInfo"
        BEGIN
            BLOCK "040904E4"
            BEGIN
                VALUE "CompanyName",        COMPANYNAME_STR           
                VALUE "FileVersion",        VERSION_STR            
                VALUE "LegalCopyright",     LEGALCOPYRIGHT_STR                        
                VALUE "ProductVersion",     VERSION_NUM_STR			
            END
        END
    END
    

    I tried a res.rc file and compiled it with "... -r res.rc MySetup", but the debug output do not find a start tag "rcc". So, how can i achieve this infos?

    thank you in advance
    best regards

    K RatzzR 2 Replies Last reply
    0
    • S Schenk

      Hi,

      how can i add version infos in the setup.exe in windows. There is no info in properties> details in windows.

      My RC-file:

      #include "version.h"
       
      VS_VERSION_INFO VERSIONINFO
      FILEVERSION     FILEVERSION_STR
      PRODUCTVERSION  PRODUCTVERSION_STR
      BEGIN
          BLOCK "StringFileInfo"
          BEGIN
              BLOCK "040904E4"
              BEGIN
                  VALUE "CompanyName",        COMPANYNAME_STR           
                  VALUE "FileVersion",        VERSION_STR            
                  VALUE "LegalCopyright",     LEGALCOPYRIGHT_STR                        
                  VALUE "ProductVersion",     VERSION_NUM_STR			
              END
          END
      END
      

      I tried a res.rc file and compiled it with "... -r res.rc MySetup", but the debug output do not find a start tag "rcc". So, how can i achieve this infos?

      thank you in advance
      best regards

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Schenk

      When I understand you correctly that is not an issue of Qt installer framework.

      The information should be already in your application exe. When it is not in your exe QtIFW has nothing to do with adding the info.

      Check in the folder where the application if stored IFW access. Do a right click there and check if the original has already the information.

      Apparently you are using MSVC for updating and there are possibly a couple of presets which are updated by the MS framework.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Schenk
        wrote on last edited by
        #3

        I do not understand you suggestion. What do you want me to do?

        The created setup shall contain informations like name, type, path, creationdate, owner etc.

        I have to compile my setup with C:\Qt\QtIFW-3.0.4\bin\binarycreator.exe -v -f -c config/config.xml -p packages installer.exe
        In "normal" Qt projects the rc file is itegrated in the pro file. But there is no option in the binarycreator.exe to add additional information like an extra rc file without <RCC> tags.

        K 1 Reply Last reply
        0
        • S Schenk

          I do not understand you suggestion. What do you want me to do?

          The created setup shall contain informations like name, type, path, creationdate, owner etc.

          I have to compile my setup with C:\Qt\QtIFW-3.0.4\bin\binarycreator.exe -v -f -c config/config.xml -p packages installer.exe
          In "normal" Qt projects the rc file is itegrated in the pro file. But there is no option in the binarycreator.exe to add additional information like an extra rc file without <RCC> tags.

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @Schenk

          OK, now I seem to understand

          It is the installer.exe in your case where the information is missing.

          It looks as you have to specify the information through the config.xml http://doc.qt.io/qtinstallerframework/ifw-globalconfig.html because that is part of the input to binary creator.

          You are listing the general resource file to be integrated into your application by the resource compiler. I doubt that you have any chance with that.

          Vote the answer(s) that helped you to solve your issue(s)

          S 1 Reply Last reply
          2
          • K koahnig

            @Schenk

            OK, now I seem to understand

            It is the installer.exe in your case where the information is missing.

            It looks as you have to specify the information through the config.xml http://doc.qt.io/qtinstallerframework/ifw-globalconfig.html because that is part of the input to binary creator.

            You are listing the general resource file to be integrated into your application by the resource compiler. I doubt that you have any chance with that.

            S Offline
            S Offline
            Schenk
            wrote on last edited by
            #5

            @koahnig The information in the config.xml does not change in tne properties in the installer.exe.
            Name and version is mandatory and these information does not show up in the properties-details.

            1 Reply Last reply
            0
            • S Schenk

              Hi,

              how can i add version infos in the setup.exe in windows. There is no info in properties> details in windows.

              My RC-file:

              #include "version.h"
               
              VS_VERSION_INFO VERSIONINFO
              FILEVERSION     FILEVERSION_STR
              PRODUCTVERSION  PRODUCTVERSION_STR
              BEGIN
                  BLOCK "StringFileInfo"
                  BEGIN
                      BLOCK "040904E4"
                      BEGIN
                          VALUE "CompanyName",        COMPANYNAME_STR           
                          VALUE "FileVersion",        VERSION_STR            
                          VALUE "LegalCopyright",     LEGALCOPYRIGHT_STR                        
                          VALUE "ProductVersion",     VERSION_NUM_STR			
                      END
                  END
              END
              

              I tried a res.rc file and compiled it with "... -r res.rc MySetup", but the debug output do not find a start tag "rcc". So, how can i achieve this infos?

              thank you in advance
              best regards

              RatzzR Offline
              RatzzR Offline
              Ratzz
              wrote on last edited by
              #6

              @Schenk said in QtIF: Adding version info in windows:

              but the debug output do not find a start tag "rcc". So, how can i achieve this infos?

              I tried using .rc file format and it just worked fine . see this

              --Alles ist gut.

              SamurayHS 1 Reply Last reply
              2
              • RatzzR Ratzz

                @Schenk said in QtIF: Adding version info in windows:

                but the debug output do not find a start tag "rcc". So, how can i achieve this infos?

                I tried using .rc file format and it just worked fine . see this

                SamurayHS Offline
                SamurayHS Offline
                SamurayH
                wrote on last edited by
                #7
                This post is deleted!
                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