MATLAB Runtime Installer Location

23 views (last 30 days)
I have a .mlapp file made by appdesigner, now I want to compile it into an .exe file that can be used in other computers which don't have MATLAB installed.
I have downloaded MATLAB Runtime for my version from mathworks site and installed it, which is now in this location:
C:\Program Files\MATLAB\MATLAB Runtime
I open Application Compiler, and choose 'Runtime included in package', after clicking on Package button, it asks me to download or specify Runtime location.
When I choose runtime folder, zip file or ...., it says: 'The file is not a valid MATLAB Runtime installer for this version of MATLAB'.
I've read all documents in MATLAB Help for this but didn't found anything helpful.
What should I do?
  2 Comments
Mahdi Hayati
Mahdi Hayati on 13 Sep 2022
Edited: Mahdi Hayati on 13 Sep 2022
I'm using R2020b and there was only one link for MATLAB Runtime version R2020b on mathworks site.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 13 Sep 2022
Edited: Image Analyst on 13 Sep 2022
What Walter was saying is to check the bell icon in the upper right of your MATLAB and see if you have the latest version or need to do the update, because I'm pretty sure the MCR is only for the latest update.
Hopefully you maintained your software maintenance agreement. If I were you I'd download the latest version (wait a week if you can for R2022b to be released).
I have my end users install the run time MCR as a separate install rather than including it in my app's install. But if you want to include the MCR in your install you need to figure out what it wants. Does it want
  1. the zip file on your computer, or
  2. the setup.exe from the extracted zip file contents, or
  3. the URL for the installer on the Mathworks web site?
I'm not sure since I don't do that. If none of those work, then call tech support.
  2 Comments
Mahdi Hayati
Mahdi Hayati on 14 Sep 2022
thank you both.
my MATLAB wasn't up to date and that was the problem, because as you mentioned, the runtime file in mathworks site is for the last update.
I will download it using the command below:
compiler.runtime.download
so it will download exactly the file for my version of matlab.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by