c# - Not Able to Install when Newer Version of Prerequisites are Present -


i have c# solution includes c++ project accessed com object. building in vs 2010, , have created windows installer install program. application 64 bit, , runs fine on machines. however, want add "visual c++ 2010 runtime libraries (x64)" prerequisite, can sure required available on system.

if make change, every time try installing on test system, worked before, told visual c++ needs installed. click install button, yes uac, , error saying "a newer version of microsoft visual c++ 2010 redistributable has been detected on machine." given message "an error occured while installing system components... setup cannot continue until system components have been installed."

component visual c++ 2010 runtime libraries (x64) has failed install following error message: "asia"  following components failed install: - visual c++ 2010 runtime libraries (x64)  

i find odd can't install application if newer version of c++ on computer.

enter image description here

one additional bit of information: msi file work 64 bit installation, need edit orca, go binary -> installutil _> , change field 64 bit version of installutillib.dll. since prerequisite checking happens in exe file, before loading msi, don't think make difference, thought add in. if not make change, installer crashes immediately.

if knows need either latest version of visual c++ install, or accept later version fulfilling requirements, appreciate guidance.

currently testing on windows 7 x64 system.

steps solve can found here, , product values can found here.

below basic steps followed:

edit

c:\program files (x86)\microsoft sdks\windows\v7.0a\bootstrapper\packages\vcredist_x64\product.xml 

find

<installchecks>     <msiproductcheck property="vcredistinstalled" product="{6ee91c1a-a2e7-38cd-aebb-3b900a4d8868}"/> </installchecks> 

change to

  <installchecks>     <msiproductcheck property="vcredistinstalled" product="{1d8e6291-b0d5-35ec-8441-6616f567a0f7}"/>   </installchecks> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -