<

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

Published on
12,849 Points
6,849 Views
Last Modified:
Approved
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.
vcredist-x64.zip
vcredist-x86.zip
0
Comment
Author:Swamp_Thing
0 Comments

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Join & Write a Comment

Did you know PowerShell can save you time with SaaS platforms? Simply leverage RESTfulAPIs to build your own PowerShell modules. These will kill repetitive tickets and tabs, using the command Invoke-RestMethod. Tune into this webinar to learn how…
A query can call a function, and a function can call Excel, even though we are in Access. This is Part 2, and steps you through the VBA that "wraps" Excel functionality so we can use its worksheet functions in Access. The declaration statement de…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month