Unsolved Files to gather for packaging application made with Qt5.8 MSVC2015 for different versions of Windows OS
-
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
-
@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). -
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. -
@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
-
Yes, I want to support all these windows versions.
-
Usually not the server versions... but the desktop versions.
-
@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?!