Share via


Installing VC Runtime 2010

Question

Wednesday, April 22, 2015 12:33 PM

Hi every body,

I'm facing a problem which concerns a Visual Studio 2010 application that I have developed.

When I execute this application on my computer every thing works fine. But when I try on others, some computers works fine too, ans some others doesn't work.

After searching for a while, I found that computers that worked had installed Visual Studio and not the others.

So, I have searched the main difference between a computer with Visual Studio and another without Visual Studio. I have understand that the VC Runtime 10 is not installed on the computer which haven't installed Visual Studio. My application needs that this module will be installed.

I tried to install the MSI file x64 and x86 of VC runtime but there is an error message which appears "To instal this product, please run Setup.exe. For other installation options, see the Installation section of ReadMe.htm." I also tried to install VC_redist before  but always the same error appears.

One solution can be to install Visual Studio before (I already tried and that works fine) but it is not possible to propose this solution to our customer.

So, I come to you with the following question:

How can I install only the module vc runtime 10 without completely install Visual Studio?

I remain at your disposal for other question.

Thanks.

YM

All replies (13)

Wednesday, April 22, 2015 2:14 PM

So, I come to you with the following question:

How can I install only the module vc runtime 10 without completely install Visual Studio?

I remain at your disposal for other question.

Thanks.

YM

Here are the redistributables you need:

https://www.microsoft.com/en-us/download/details.aspx?id=5555

http://www.microsoft.com/en-us/download/details.aspx?id=14632


Wednesday, April 22, 2015 3:14 PM

Thanks for your reply but I have already try this and it does not works as I want.

When I take a look on the configuration panel, in the computers which have Visual Studio there are four lines :

Microsoft Visual C++ 2010 x64 Redistribuable - 10 . 0. 30319

Microsoft Visual C++ 2010 x64 Runtime - 10 .0 .30319

Microsoft Visual C++ 2010 x86 Redistribuable - 10 . 0. 30319

Microsoft Visual C++ 2010 x86 Runtime - 10 .0 .30319

But in computers which have not Visual Studio, there are only two lines when I have done the installation of this package :

Microsoft Visual C++ 2010 x64 Redistribuable - 10 . 0. 30319

Microsoft Visual C++ 2010 x86 Redistribuable - 10 . 0. 30319

So,  it lacks the runtime part. 

Have you another idea?

Microsoft Visual C++ 2010 x64 Redistribuable - 10 . 0. 30319

Microsoft Visual C++ 2010 x64 Runtime - 10 .0 .30319

Microsoft Visual C++ 2010 x64 Redistribuable - 10 . 0. 30319

Microsoft Visual C++ 2010 x64 Runtime - 10 .0 .30319

Microsoft Visual C++ 2010 x64 Redistribuable - 10 . 0. 30319

Microsoft Visual C++ 2010 x64 Runtime - 10 .0 .30319


Wednesday, April 22, 2015 8:06 PM

You can save yourself a lot of grief by simply compiling your application using the /MT option. This will incorporate all the runtime support directly into your executable. Then there are no dependencies on the Visual Studio C++ runtime, and you can freely just copy your executable to any Windows machine.


Thursday, April 23, 2015 8:29 AM

Sorry, I forgot to specify that I work in C#. 

I have found how to change /MT option in a C++ project.

But in my case  (C# project), I have not found the way to change it.

How can I change the /MT option in the case of a C# project because it seems to be the solution of my problem? 


Friday, April 24, 2015 8:13 AM

Hello Yohan Morice,

A common C# project will not use C++ runtime here. Do you actually used C++/CLI project?

In C# we change the targetframework and it is located in your csproj file:

For example, you will find TargetFramework version here:

In C++ CLR I still can see the target framework. So I have to ask you what is the details of your projects?

By the way, it is now not related to this forum topic. The setup forum talks about install/uninstall Visual Studio components. Not about the target setting.

Best regards,

Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Friday, April 24, 2015 12:45 PM

When I read the file, I have a target framework set to a 4.0 version and Client. I tried to change to a standard 4.0 version but the application does not launch correctly on the computers which have not installed Visual Studio 2010.

Which forum will be the most appropriate to post my question ?

Thanks for your help!


Friday, April 24, 2015 1:17 PM

When I read the file, I have a target framework set to a 4.0 version and Client. I tried to change to a standard 4.0 version but the application does not launch correctly on the computers which have not installed Visual Studio 2010.

So, when you try to deploy your program to another computer with the target .NET Framework set to .NET 4.0 (full), there is a launch issue?

Have you checked the integrity of .NET 4.0 on the problem target machine?

Use this tool:

http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

Run the tool with .NET 4.0 selected, then post the last 12 lines of the tool log here.


Monday, April 27, 2015 10:01 AM

In my case, I don't think that the issue come from the .Net but from another element.

On a computer without Visual, the application does not launch and then I install Visual Studio and my application starts correctly.

So, for me it comes from a module of Visual Studio which misses.


Monday, April 27, 2015 3:13 PM

You haven't spelled out what is on the target computer. Is the .NET Framework 4.0 installed? Did you try the .NET Framework Setup Verification Tool as suggested by pvdg42?


Tuesday, April 28, 2015 9:32 AM

On the two computers with which I try to launch my application, there is a .Net version 4.5 so I try to uninstall the 4.5 version and then I download and install the version 4.0 to test.

The application does not start and a message appears to tell me that the application has stopped working.

As my .Net 4.0 is dowload from the Microsoft plateform, it is not a problem of integrity.

So I have to found which module of Visual Studio is missing to be able launching my application.


Tuesday, April 28, 2015 2:03 PM

We have found our problem, but it is not yet resolved.

The issue comes from the oval shapes which have been integrated to simulate a led in our form.

So, we have replaced these elements by buttons and it works fine now.

Thanks again for your help.

Best regards.


Monday, May 4, 2015 7:51 AM

@Yohan Morice,

The problem is that we have no idea about your "oval shapes" belongs to which package because you haven't shared the details to us. And as this forum is about install/uninstall Visual Studio but your problem is about the deployment of your application. Please notice that every app may need some runtime to support, the runtime can be VC++ runtime, .NET runtime or some other references from your app. Please manually check the dependency of "oval shapes".

Or please clarify your detailed project type to us so that I can redirect you to the right forum.

Best regards, 

Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, May 5, 2015 9:57 AM

The oval shapes is in the Visual Basic PowerPacks tab of the toolbox.
I agree with your response, for me this element needs the VC++ runtime.

So when I try to install, only the VC++ runtime, computers requested a setup.exe file to start the installation.

When I try to install the VC redistribuable I can't see VC++ runtime in my control panel.

If I install Visual Studio, I can see in my control panel a line dedicated to VC++ runtime.

So, it must be existing a solution to install VC++ runtime without all the redistribuable, as Visual Studio does it.

Please tell me in which forum, it will be better to post this issue.

Regards.