1

The latest visual studio c++ redistributable is located here. But the problem is that I want to include it to install shield installation and it needs merge module rather then exe file.

How can I find corresponding merge module (msm file)? Is there a way to download it to installshield somehow?

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
managerger
  • 728
  • 1
  • 10
  • 31
  • [The Redistributables View](https://docs.revenera.com/installshield26helplib/helplibrary/IHelpMergeModulesLiveGallery.htm) doesn't show you anything to download? Also [please read this](https://stackoverflow.com/a/51423249/129130) on why you should use the executables instead of the merge modules. Top-end versions of Installshield allow you to create [Suite projects](https://stackoverflow.com/a/49212599/129130). – Stein Åsmul Sep 30 '20 at 00:43
  • You should also have the [merge modules on disk, just do a search](https://stackoverflow.com/a/42680756/129130) (if you have Visual Studio installed on that box). Something like: `C:\Program Files (x86)\Microsoft Visual Studio\2017\[EditionHere]\VC\Redist\MSVC\[VersionHere]\MergeModules`. However, the suite projects mentioned above should allow you to run the executable version(s). – Stein Åsmul Sep 30 '20 at 01:04
  • @SteinÅsmul The redistributable view in the InstallShield shows runtimes up to VisualStudio C++ 14.0. Unfortunately, I have an old version of InstallShield, therefore a suite project isn't an option for me(. I was able to find MSM modules following the path you have mentioned and copied them to the merge modules folder [according to the documentation](https://docs.revenera.com/installshield26helplib/helplibrary/IHelpISXGalleryPrereqAdd.htm#organizingfiles_1507802754_1129117). Seems that resolve my issue. Thank you, sir! – managerger Sep 30 '20 at 09:59
  • Good. I guess I should have added those comments as an answer. I'll do that quickly. – Stein Åsmul Sep 30 '20 at 10:02

2 Answers2

1

In Summary: Use Installshield to install the executables for the VC++ runtime via "suite projects" (chain of setups to install with launcher), or locate the merge modules on disk on systems with Visual Studio installed and copy relevant items to Installshield redistributable folder.

Remember to test well, and also do a Windows Update after installation to check if there are pending security fixes (your merge modules might not be up to date). Try updating Visual Studio if you see problems - or install the latest SDK manually and look for newer versions of the merge modules.


The Redistributables View doesn't show you anything to download? Also please read this on why you should use the executables instead of the merge modules. Top-end, newer versions of Installshield allow you to create Suite projects (See link for details, here is a screenshot):

enter image description here

You should also have the merge modules on disk, just do a search (if you have Visual Studio installed on that box). Something like: C:\Program Files (x86)\Microsoft Visual Studio\2017\[EditionHere]\VC\Redist\MSVC\[VersionHere]\MergeModules.

However, the suite projects mentioned above should allow you to run the executable version(s), but not if you are using older Installshield versions.

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
1

The Visual C++ Runtime depends on the Universal CRT, and you cannot install the Universal CRT via Merge Module on end-user’s computers (except on Windows XP). The Merge Modules do absolutely nothing for it on Vista/7/8/8.1/10.

See Daniel Griffing’s comments on this Visual Studio bug report.

Three solutions:

  1. Require Windows 10. It has the UCRT built into the OS; it will always be present.
  2. Require Windows <10 users to install Windows Update KB2999226 before installing your application.
  3. Distribute the UCRT manually as files in your application directory. This is cumbersome and dangerous as they won’t receive security updates, but lots of applications do this.

Every program using the dynamic CRT and built with the Windows 10 SDK (Visual Studio 2015, 2017, or 2019) requires either KB2999226 or a copy of the UCRT files to run on Windows <10, or it will fail missing api-ms-win-crt-runtime-l1-1-0-dll. These programs require nothing at all to run on Windows 10.

Since the download links in the KB articles are dead, you may want to point your users towards:

Krishty
  • 164
  • 12