MSVCR.dll is missing from your computer

Feb 13, 2016 at 12:19 AM
Edited Feb 14, 2016 at 6:30 AM
What are the Visual C++ Redistributable Packages expectations? Is it a pre-requisite for all Apps that use ClearScript?

Our SDK (Class library developed using Visual Studio 2013) that references ClearScript.V8 v5.4.2.1 will be distributed to be used in winforms or wpf apps. A sample wpf app that uses our SDK works fine on my developer machine, but on copying the bin\debug folder to a windows 7 laptop, it see the following error
The program can't start because MSVCR120.dll is missing from your computer. Try reinstalling the program to fix this problem.
On searching the internet, there were pointers to get Visual C++ Redistributable Packages for Visual Studio 2013 installed on the target machine.

Couple of questions
  1. Wondering if I should ask the partners who create WPF/WinForms Apps using our SDK to add these redistributables to their deployment package?
  2. Is there any other way to distribute these missing dll's along with our SDK?
Coordinator
Feb 15, 2016 at 12:32 AM
Hello!

Only ClearScript's V8 interface uses the Visual C++ libraries, so you don't need them if you're using JScript or VBScript.

Since these libraries are available as free downloads, you can either bundle them with your SDK or instruct your partners to download the latest versions, although they're likely to have them already if they use Visual Studio.

When it comes to end-user deployment, it usually makes sense to have the application package automate the installation of these libraries. See here for an overview of the available options.

Good luck!