After windeployqt, vcruntime140.dll cannot be found when running.
-
@ChrisW67 Tks. If I want to include this library, which dll should be included when publishing the program, try to put vcruntime140.dll in the program directory, but it doesn't work.
@senmx You should be careful cherry-picking single Windows DLLs like that.
Firstly, that runtime should be a standard part of any up-to-date Windows 10 (presumably 11). It may need to be installed on older Windows, and the simplest way to guarantee that is done correctly (all the related pieces) is the Microsoft redistributable installer. You can bundle the redist exe in your installer and run it silently during install, or ask the user to do it before installing your program.
It is not recommended, but you can deploy the redist DLLs in your application folder. You have to get all of them and be sure they are the distributable versions. At least concrt140.dll, msvcp140.dll, vccorlib140.dll, and vcruntime140.dll.
The reason this is not recommended is that it means your program does not benefit from bug/security fixes in the runtime libs pushed out through Windows Update. -
Yes. So install the relevant Microsoft VC runtime redistributable (2015 I think).
-
Yes. So install the relevant Microsoft VC runtime redistributable (2015 I think).
-
@ChrisW67 Tks. If I want to include this library, which dll should be included when publishing the program, try to put vcruntime140.dll in the program directory, but it doesn't work.
@senmx You should be careful cherry-picking single Windows DLLs like that.
Firstly, that runtime should be a standard part of any up-to-date Windows 10 (presumably 11). It may need to be installed on older Windows, and the simplest way to guarantee that is done correctly (all the related pieces) is the Microsoft redistributable installer. You can bundle the redist exe in your installer and run it silently during install, or ask the user to do it before installing your program.
It is not recommended, but you can deploy the redist DLLs in your application folder. You have to get all of them and be sure they are the distributable versions. At least concrt140.dll, msvcp140.dll, vccorlib140.dll, and vcruntime140.dll.
The reason this is not recommended is that it means your program does not benefit from bug/security fixes in the runtime libs pushed out through Windows Update. -
@senmx You should be careful cherry-picking single Windows DLLs like that.
Firstly, that runtime should be a standard part of any up-to-date Windows 10 (presumably 11). It may need to be installed on older Windows, and the simplest way to guarantee that is done correctly (all the related pieces) is the Microsoft redistributable installer. You can bundle the redist exe in your installer and run it silently during install, or ask the user to do it before installing your program.
It is not recommended, but you can deploy the redist DLLs in your application folder. You have to get all of them and be sure they are the distributable versions. At least concrt140.dll, msvcp140.dll, vccorlib140.dll, and vcruntime140.dll.
The reason this is not recommended is that it means your program does not benefit from bug/security fixes in the runtime libs pushed out through Windows Update.