[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


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

Published on
13,102 Points
Last Modified:
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
           http://go.microsoft.com/fwlink/?LinkID=210622    for the x64
           http://go.microsoft.com/fwlink/?LinkID=210621    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.

Featured Post

Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Learn how to collaborate with office 365 Office Online
There are many cases found where ScanPST.exe fails to repair corrupt Outlook PST File. When user tries to repair PST using Inbox Repair tool and it throws below error: •      Inbox Repair tool does not recognize the file •      ScanPST.exe hangs in betwee…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month