Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Files to gather for packaging application made with Qt5.8 MSVC2015 for different versions of Windows OS
Forum Updated to NodeBB v4.3 + New Features

Files to gather for packaging application made with Qt5.8 MSVC2015 for different versions of Windows OS

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 1.8k Views 2 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.
  • T Offline
    T Offline
    TheCrowKaka
    wrote on last edited by
    #1

    Hello

    I have a project which is made in Qt5.8 for VS2015 Express Edition 32 bit.

    The project works fine in release mode from QtCreator. Then using the windeployqt tool, I gathered all the files required in a single directory and run the executable from that directory, it still works.
    I have also put vccorlib140.dll, vcruntime140.dll & msvcp140.dll files in that directory.
    I have also put the vcredist_x64.exe file as well as vcredist_x86.exe file in the same directory.

    What I want to do is create an setup package that can be installed on Windows 7, 8, 8.1, and 10 both 32bit and 64bit installers.
    My question is how to do that. I tried coping all these files on Windows 7 machine and it gave an error with the msvcp140.dll library not detected.

    Am I required to create separate packages for all these OS's or how do I go about.

    I have no clue how to do that as I have been handling mingw for a long time and for this particular application I am required to use the VS2015 based Qt and further package it.

    Any guidelines on how to proceed will be helpful.

    Thanks

    KK

    A Qt Enthusiastic...

    raven-worxR 1 Reply Last reply
    0
    • T TheCrowKaka

      Hello

      I have a project which is made in Qt5.8 for VS2015 Express Edition 32 bit.

      The project works fine in release mode from QtCreator. Then using the windeployqt tool, I gathered all the files required in a single directory and run the executable from that directory, it still works.
      I have also put vccorlib140.dll, vcruntime140.dll & msvcp140.dll files in that directory.
      I have also put the vcredist_x64.exe file as well as vcredist_x86.exe file in the same directory.

      What I want to do is create an setup package that can be installed on Windows 7, 8, 8.1, and 10 both 32bit and 64bit installers.
      My question is how to do that. I tried coping all these files on Windows 7 machine and it gave an error with the msvcp140.dll library not detected.

      Am I required to create separate packages for all these OS's or how do I go about.

      I have no clue how to do that as I have been handling mingw for a long time and for this particular application I am required to use the VS2015 based Qt and further package it.

      Any guidelines on how to proceed will be helpful.

      Thanks

      KK

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @TheCrowKaka said in Files to gather for packaging application made with Qt5.8 MSVC2015 for different versions of Windows OS:

      I have also put the vcredist_x64.exe file as well as vcredist_x86.exe file in the same directory.

      why do you put the exe files also in the same directory?
      Basically the VisualC++ runtime (vcredist*) should be installed on the target system. So it's not necessary to ship it with your binaries. But of course you can add the installation step of it into your installer. But it's not a part of your application per se.
      msvcp140.dll is part of the VC runtime and will be installed into the system in a central place (if it isn't installed already).

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • T Offline
        T Offline
        TheCrowKaka
        wrote on last edited by
        #3

        Thanks Raven for this information

        Yes, I understand that the runtime executable is to be installed at the time of installation and the other dlls are to be installed in the system or system 32 folder.
        I am already doing all that.
        However, the installation setup only works on Windows 10 PCs.

        I want that to work on other older versions of Windows also.
        So in order for that to happen, what I am supposed to do different.

        A Qt Enthusiastic...

        raven-worxR 1 Reply Last reply
        0
        • T TheCrowKaka

          Thanks Raven for this information

          Yes, I understand that the runtime executable is to be installed at the time of installation and the other dlls are to be installed in the system or system 32 folder.
          I am already doing all that.
          However, the installation setup only works on Windows 10 PCs.

          I want that to work on other older versions of Windows also.
          So in order for that to happen, what I am supposed to do different.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @TheCrowKaka
          what Windows versions do you want to support?

          Visual C++ Redistributable for Visual Studio 2015 runs on:

          Windows 10
          Windows 7 Service Pack 1
          Windows 8
          Windows 8.1
          Windows Server 2003 Service Pack 2
          Windows Server 2008 R2 SP1
          Windows Server 2008 Service Pack 2
          Windows Server 2012
          Windows Vista Service Pack 2
          Windows XP Service Pack 3
          

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TheCrowKaka
            wrote on last edited by
            #5

            Yes, I want to support all these windows versions.

            A Qt Enthusiastic...

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TheCrowKaka
              wrote on last edited by
              #6

              Usually not the server versions... but the desktop versions.

              A Qt Enthusiastic...

              raven-worxR 1 Reply Last reply
              0
              • T TheCrowKaka

                Usually not the server versions... but the desktop versions.

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @TheCrowKaka
                and the list i've posteed is the officially supported Windows OS versions.

                @TheCrowKaka said in Files to gather for packaging application made with Qt5.8 MSVC2015 for different versions of Windows OS:

                However, the installation setup only works on Windows 10 PCs.

                So i don't see why it shouldn't work on your other systems?!

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                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