Apr 17, 2010 Microsoft Visual C 2010 redistributable package installs runtime components of C Runtime (CRT), Standard C, ATL, MFC, OpenMP and MSDIA libraries as shared DLLs in%windir%system32. Most application programs that requires Visual C+ 2010 runtime libraries will likely include the package to install automatically together with the application. Method 4: Repairing Visual C Runtime. Press the Windows Key + R, appwiz.cpl and then press Enter. Browse through the list and uninstall all Microsoft Visual C Runtimes except 2010 and 2012. Locate Microsoft Visual C Runtime 2012 in the list of installed applications. Hi, I need to install Microsoft Visual C 2010 x64 Redistributable on my PC. Each time I try, the setup says 'A newer version of Microsoft Visual C 2010 has been detected on the machine'.
I have seen your previous blog posts that describe how to detect the presence of the Visual C++ 2005 redistributable package and the Visual C++ 2008 redistributable package. I am creating an installer that requires the Visual C++ 2010 runtime files. How can I detect the presence of the Visual C++ 2010 redistributable package?
Answer:
Unlike the Visual C++ 2005 and 2008 redistributable packages, there are registry keys that can be used to detect the presence of the Visual C++ 2010 redistributable package.
Visual C++ 2010 redistributable package detection registry values
Alternatively, like in past releases of the Visual C++ redistributable package, you can use an algorithm like the one I described in my previous blog posts to detect the presence of the Visual C++ 2010 redistributable package on a system:
Call the MsiQueryProductState API
Pass in the product code for the package that you want to detect based on the list below
Check the return value of this API. If it is anything other than INSTALLSTATE_DEFAULT, the package is not yet installed
Visual C++ 2010 redistributable package product codes
Visual C++ 2010 Redistributable Package (x86) - {196BB40D-1578-3D01-B289-BEFC77A11A1E}
Visual C++ 2010 Redistributable Package (x64) - {DA5E371C-6333-3D8A-93A4-6FD5B20BCC6E}
Visual C++ 2010 Redistributable Package (ia64) - {C1A35166-4301-38E9-BA67-02823AD72A1B}
Visual C++ 2010 SP1 redistributable package product codes
Visual C++ 2010 SP1 Redistributable Package (x86) - {F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
Visual C++ 2010 SP1 Redistributable Package (x64) - {1D8E6291-B0D5-35EC-8441-6616F567A0F7}
Visual C++ 2010 SP1 Redistributable Package (ia64) - {88C73C1C-2DE5-3B01-AFB8-B46EF4AB41CD}
<update date='4/12/2011'> Added product codes for Visual C++ 2010 SP1 redistributable packages. </update>