I was facing following problems after create installer through Visual studio 2010.I go through several solution and found solution for only one problem. Here I am providing solution for the both the problem and that works for me and hope this post will be helpful for others also.

Problems:-

  1. Visual C++ 2010 Runtime Libraries prerequisite keeps popping up on a VS 2010 created installer
  2. Not able to install when Newer Version of Prerequisites are Present

Solution for Problem 1:-Visual C++ 2010 Runtime Libraries prerequisite keeps popping up on a VS 2010 created installer

Step 1: Locate the product.xml (Path : “C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x86”)

Step 2: File contain incorrect product code. Replace the above with the correct product code for the Visual C++ 2010 SP1 redistributable as follows:

<InstallChecks>
    <MsiProductCheck Property="VCRedistInstalled" Product="{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}"/>
  </InstallChecks>

Solution for Problem 2:-Not able to install when Newer Version of Prerequisites are Present

Step 1: go to path “C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x86\en”

Step 2: locate the package.xml and update the download path for VC++ redistributable 10.0.40219

 <String Name="VCRedistExe">http://download.microsoft.com/download/C/6/D/C6D0FD4E-9E53-4897-9B91-836EBA2AACD3/vcredist_x86.exe</String>