how to forece mfc to use Redistributable 2013 or below

0

I create an Activex by vs2015 and '/clr' option. when i run it on other pc's, it need Redistributable 2015. But Redistributable 2015 not installed on win8.1 and win2012 server. but Redistributable 2013 installed on them.

How can i force mfc to use Redistributable 2013? (or better solution)

i checked this but not helpful. and changing Platform Toolset to Visual Studio 2015 - Windows XP (v140_xp), generate some errors in a hello-word project

  • i use Activex because i need events
  • it use 'clr' option, because i use a managed dll in this activex
  • Redistributable 2015 log Error 0x80240017: Failed to execute MSU package apparently for Windows8.1-KB2999226-x64.msu
  • Windows8.1-KB2999226-x64.msu standalone installer say The update is not applicable to your computer.
  • installing a Net4.6 suggested, But this installer blocked by The update corresponding to KB2919355 needs to be installed before you can install this product on Windows 8.1 or Windows Server 2012 R2 and this update is 690.8 MB, and that MB blocked me.
c++
mfc
asked on Stack Overflow Dec 10, 2016 by mohsen • edited May 23, 2017 by Community

1 Answer

0

You can not switch Visual Studio to use older toolset. You have to either - install older version of MSVC, or link your program statically, removing need in the redistributable altogether. To staticaly link your project open its Release properties, navigate to the C++/Code generation node and select Multithreaded instead of Multithreaded Dll for the Runtime option.

answered on Stack Overflow Dec 10, 2016 by Ari0nhh

User contributions licensed under CC BY-SA 3.0