Can VS 2010 Setup Include MCR as prerequisite?


I have a project that I'm trying to build an installer for using a Visual Studio setup project. I'm wondering if there is a way to get the MatLab Compiler Runtime included as a prerequisite. Right now I have to include the MCRSetup.exe and have the user run that first and then my installer. Not too onerous but I was just wondering if there is a way to make it all happen in one step, so that the MCR stuff gets installed the same way that .NET and the C++ runtime libs get installed.

I did try going to the prerequisites tab but there is no choice for selecting the MCR (not that I expected one). I also tried adding the MCRInstaller.exe to my Application Folder. This almost works (much to my surprise). The MCR Installer runs automatically and appears to be the last step. However, it fails before it gets very far because it senses that another installer is running (which is my project that launched it) and the user is instructed to quit that installer first. I'm sure my users will find this confusing and I was hoping to make it a little more seamless.


Look at <a href="http://www.codeproject.com/KB/dotnet/Prerequisites_in_Setup.aspx" rel="nofollow">here</a>.

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/s7Ikg.jpg" data-original="https://i.stack.imgur.com/s7Ikg.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/pkVK3.jpg" data-original="https://i.stack.imgur.com/pkVK3.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

You can copy the setup and browse to that location as mention in the second screen.

Or look at <a href="https://stackoverflow.com/questions/1334436/adding-custom-prerequsites-to-visual-studio-setup-project" rel="nofollow">here</a>.


While I found the one reply I got informative it didn't really solve the problem. I'm going to have to set as the answer that it can't (or maybe shouldn't) be done. Trying the 2nd radio button in set up was informative though. When you do that the installer creates folders for .NET and C++ restributables. This is good to know if I have customers that don't want to be on the Internet when installing.

Unfortunately, in addition to the MCR installer failure I alluded to in my question, the VC++ installer is somewhat problematic also. When I go to install a new version, the VC++ installer actually wants to run a reinstall. I don't understand this at all. I could see it OFFERING to do an uninstall. Since I will be distributing two programs that rely on .NET, VC++ and the MCR, I have to conclude I shouldn't make the installers all inclusive. The uninstall/reinstall is just too confusing and needlessly lengthy. The way .NET is handled seamlessly behind the scenes is perfect but VC++ and the MCR installers don't appear to support the same methodology.

I'm just going to have the final users do three installs, while not very elegant I'm pretty sure this will result in the fewest questions when the time comes to install an upgrade.


  • Preprocessor-IF doesn't work
  • High quality image re-sampling in Mono/C#/ASP.NET
  • Does installing gfortran with homebrew and with an installer create a conflict?
  • Recursively defined nested types (in terms of incomplete types)
  • When is InputStream.available() useful?
  • Linux java wrapper and installer
  • Is it possible to extract the value from processing-instruction ('define') with XPath?
  • ColdFusion - DateTime Format with GMT offset
  • Sharepoint change Content Type in Sharepoint Designer using workflow
  • How to distinguish between attribute and element nodes returned from a Saxon XPathSelector
  • Change colour of vertices after they are uploaded using a VBO
  • Radio button show hover between two radio button using jquery
  • Django Rest Framework: getting lists from query_params without request.getlist
  • Impossible to pass the router service to a twig extension in symfony 2.6
  • Simple command-line app I/O in Dart
  • Listen to the 'change' even of an element in the shadow DOM
  • Notepad++ - delete all lines with certain text
  • change color of jstree node
  • Failed to find version-tag string. File must be updated
  • Alamofire and Reachability.swift not working on xCode8-beta5
  • ViewController With Transparent Background Entering Current ViewController With Push Transition
  • How to suppress a dialog
  • Paperclip, set path outside of rails root folder
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • C# - Serializing and deserializing static member
  • swift auto completion not working in Xcode6-Beta
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Excel - Autoshape get it's name from cell (value)
  • Sending data from AppleScript to FileMaker records
  • ILMerge & Keep Assembly Name
  • Perl system calls when running as another user using sudo
  • How to handle AllServersUnavailable Exception
  • Large data - storage and query
  • WOWZA + RTMP + HTML5 Playback?
  • How to include full .NET prerequisite for Wix Burn installer
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • Is it possible to post an object from jquery to bottle.py?
  • Append folder name and increment by 1 using batch script