简体   繁体   中英

Distribute msvcr120.dll with a c++ app that was created with Visual Studio 2015

I have created a c++ app using visual studio 2015. My distribution package requires files msvcp140.dll and vcruntime140.dll in order for my app to run correctly on another pc. According to https://www.visualstudio.com/license-terms/distributable-code-microsoft-visual-studio-2015-rc-microsoft-visual-studio-2015-sdk-rc-includes-utilities-buildserver-files/ :

Visual C++ Runtime Files Subject to the License Terms for the software, you may copy and distribute with your program any of the files within the followng folder and its subfolders except as noted below. You may not modify these files. C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist

Since both of the above files reside in C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist I can distribute these two files with my executable. However I also need file msvcr120.dll due to a precompiled third party library that I also use. This file resides in C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Team Tools\\Performance Tools.
I know that there is an option by using specific inno setup file to check which vc++ redistributables are needed and to installed the correct ones. However for the time being I just need to include the relevant dll in my executable setup package.
So my question is whether I'm allowed to distribute msvcr120.dll with my package as well?

If you have VS 2013 and you can find the msvcr120.dll file under C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\redist\\arm\\Microsoft.VC120.CRT, for the detail information, please check this: Determining Which DLLs to Redistribute

If you do not install the VS 2013, their DLLS are also available as stand-alone redistributable packages from the Microsoft Download Center.

Refer to Distributable Code for Microsoft Visual Studio 2013 and Microsoft Visual Studio 2013 SDK (Includes Utilities & BuildServer Files) and you should be able to distribute the msvcr120.dll file from C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\redist\\arm\\Microsoft.VC120.CRT.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM