The VS package generated installation files need to reinstall the C + + 2010 Runtime (x86) solution each time they execute __c++

Source: Internet
Author: User


If you have packaged a installer with your own packaged project with Visual Studio, and generated the. msi and setup.exe installation files, and selected the Visual C + + 2010 Runtime (x86) in the Project installation Prerequisites environment, Then you will find that, click Setup.exe installation, if you click the Setup.exe installation files again, you will need to install the C + + operating environment again, as if each time can not be installed by C + + prerequisite conditions.


The reason is that Microsoft's C + + operating environment product code has been changed.

The solution is as follows

Find this file

C:\Program Files (x86) \microsoft Sdks\windows\v7.0a\bootstrapper\packages\vcredist_x86\product.xml
To find this section inside.

<InstallChecks>
<msiproductcheck property= "vcredistinstalled" product= "{ 6ee91c1a-a2e7-38cd-aebb-3b900a4d8868} "/>
</InstallChecks>
Change the inside product to

<InstallChecks>
<msiproductcheck property= "vcredistinstalled" product= "{ F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} "/>
</InstallChecks>

found that the C + + Runtime environment package is installed after the change or every installation. Careful examination found that this package was replaced by me, is a patch package, of course, his product is inconsistent, to the
registry [hkey_local_machine\software\microsoft\windows\currentversion\ Uninstall] You can see the picture clearly
 > It's better to replace this product.


The problem has been solved. 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.