Not able to run Matlab runtime .exe file.
Show older comments
I'm running matlab version R2019b. I wanted to open a Matlab combiled exe file, but the following message appears.
"Could not find version 7.16 of the MCR. Attempting to load mclmcrrt7_16.dll. ; Please install the correct version of the MCR. Contact your vendor if you do not have an installer for the MCR."
To check my mcr; I run the following command on matlab, 'mcrinstaller"
'mcrinstaller' requires one of the following:
MATLAB Compiler
MATLAB Compiler SDK
I have already installed the MCR for my version in the C drive in the MATLAB folder. But still it doesn't work.
Answers (1)
Walter Roberson
on 9 Jun 2021
Edited: Walter Roberson
on 9 Jun 2021
0 votes
MCR 7.16 is the MCR for R2011b .
You cannot use an newer version of MCR to run something built with MCR 7.16 . The MCR needed is specific enough that the various releases of MATLAB that had Service Packs (such as R2014aSP1) need a different MCR. I do not know at the moment if the newer Update system need different MCR.
MCR 7.16 cannot be downloaded from Mathworks as a stand-alone piece of code. For licensing reasons, you must get it from the person who build the EXE you are using. Mathworks cleared the licenses and was able to start offering downloads of MCR... as of R2012a.
Exception: if you have a license for MATLAB Compiler for R2011b or newer, then you are authorized to download older releases of MATLAB, including downloading R2011b and MATLAB Compiler, and using the mcrinstaller from that.
7 Comments
Anshuman S
on 9 Jun 2021
Walter Roberson
on 9 Jun 2021
The WIN64 MCR Installer, version 7.16, is:
C:\Program Files\MATLAB\R2011b\toolbox\compiler\deploy\win64\MCRInstaller.exe
The above is copied directly from the output for mcrinstaller in the MATLAB R2011b that I just installed
Anshuman S
on 9 Jun 2021
Walter Roberson
on 9 Jun 2021
If the application provider still has MATLAB R2011b installed in the default directory, then they need to provide the named file for you. If they installed in a non-default directory then it would be found at
fullfile(matlabroot, 'toolbox', 'compiler', 'deploy', 'win64', 'MCRINstaller.exe')
May I also get to know how did you instal this version on your computer?
https://www.mathworks.com/downloads/ -> "Click here to download any MathWorks release" -> "Download earlier release" -> R2011b -> Choose a supported platform -> Windows -> Products MATLAB (7.13) + MATLAB Compiler (4.16) -> Download R2011b Products -> click each of the 5 download buttons to download a file . When they are all downloaded, go to the directory where they were downloaded, and open matlab_R2011b_win64_installer.exe
For authorized accounts the direct link to the point of having selected 64 bit MATLAB R2011b is https://www.mathworks.com/downloads/web_downloads/select_products?dl_action=choose_products&platform=win64&release_name=R2011b&tab=f after which you would start selecting products.
In some universities, the license administrator permits other account holders to download products. In many universities, however, the license administrator blocks other account holders from downloading products, in favour of downloading them and putting them on a local file server at the university, in order to reduce bandwidth (network costs are high for some universities, but other universities get excellent deals from their network providers.)
Anshuman S
on 9 Jun 2021
Walter Roberson
on 15 Jul 2021
You would need Parallels or similar MS Windows emulation system to use the .exe on MacOS .
You can download the Mac version of R2011b and use mcrinstaller() to find the installer, which would probably be
/Applications/MATLAB_R2011b.app/toolbox/compiler/deploy/maci64/MCRInstaller.app
However, the Mac version of MCR cannot be used to run .exe compiled for Windows .
Anshuman S
on 16 Jul 2021
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!