Visual Studio 2010 Setup and Deployment with c++ Redistributable prerequisite

If your Visual Studio Setup and Deployment project includes a prerequisite for the Microsoft Visual C++ 2010 Redistributable and the setup.exe fails with the following error:

A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.

Try this solution which worked for me:

Note that at the time of this writing c++ 2010 Redistributable is at SP1 ( v10.0.40219 )

The environment in which this problem was manifest is Visual Studio 2010 SP1 & SDK v7.0A

VB 2010 solution comprised of
                - Windows Forms Application Project
                - Setup and Deployment Project ( x86 target & Prerequisites )
                - Setup and Deployment Project ( x64 target & Prerequisites )

One of my prerequisites is for the Microsoft Visual C++ 2010  x## Redistributable

The vcredist_x## packages in my
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
folders were deploying 10.0.30319 and the prerequisite install would fail  if c++ Redistributable 10.0.40219 was already installed ( TeamViewer installs 10.0.40219 for example ).

To resolve this issue three changes were required for each the x64 and the x86

    1) Download the vcredist_x##.exe for 10.0.40219 overwriting the existing
     for the x64
     for the x86

    2) Change the product.xml <MSIProductCheck ..... /> Product to
          {1D8E6291-B0D5-35EC-8441-6616F567A0F7}       for the x64
          {F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}       for the x86

    3) Change the package.xml <String Name="VCRedistExe"> ..... LinkID to
          210622      for the x64
          210621      for the x86

I am attaching two compressed archives - one for each:
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x64
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x86

These archives are the UPDATED packages but DO NOT include the required vcredist_x##.exe file as that is not allowed in the attachment so you must download your own copy from the links I've provided above.

Note: You can verify the version of the vcredist_x##.exe by right-click >> properties and selecting the Details tab.

Comments (0)

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
You Belong in the World's Smartest IT Community