My MCR is installed, and path is set, but Matlab does not detect it, and downloading a ZIP file for 2022b fails to work as well

11 views (last 30 days)
Hi Folks,
I hope someone can help. My IT department installed the MCR for Matlab 2022b in:
C:\Program Files\MATLAB\MATLAB Runtime\R2022b\runtime\win64
I can see it in my system path:
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.13.0.2105380 (R2022b) Update 2
MATLAB License Number: *******
Operating System: Microsoft Windows 11 Enterprise Version 10.0 (Build 22631)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
>> mcr
MATLAB Runtime installer cannot be found. Download it using the command: compiler.runtime.download
I need to use Matlab AppDesigner to create a stand-alone EXE, and I need others in my company to be able to run it without downloading the MCR.
Interestingly, if I use AppDesigner's Application Compiler feature to Specify a ZIP file that I download from https://www.mathworks.com/products/compiler/matlab-runtime.html
Even though I am clearly running 2022b and I download the correct version on the website "MATLAB_Runtime_R2022b_Update_10_win64.zip", when I point Application Compiler to it, Matlab gives me an error saying "The file is not a valid MATLAB Runtime installer for this version of MATLAB".
Any advice on how to fix this?
Thanks!

Answers (1)

Kristoffer Walker
Kristoffer Walker on 21 Jul 2025
Edited: Kristoffer Walker on 21 Jul 2025
Folks,
I called Matlab customer support on this one as it was delaying a critical deadline delivery and want to communicate the results.
I have several issues:
(1) my org provides 2022b Update 2, not Update 10. Update 10 is the MCR installed on my system by IT.
(2) Prior updates were not communicated as necessary to care about on the Matlab MCR website. I had to hack the link to the Update 10 *.zip file to get Update 2.
(3) The "Valid Matlab Runtime installer" is not a valid message anymore since 2018a. Not even sure why it is still a valid command. See this link: https://www.mathworks.com/matlabcentral/answers/402422-why-do-i-receive-a-valid-matlab-runtime-installer-not-found-message-in-application-compiler-when-c
(4) Run "compiler.runtime.download" and keep your fingers crossed as it may take a very long time. This is supposed to create a temporary file on your computer in a space you have permission to write to. Then you take that *.zip file and insert its path into Preference -> Compiler text box.
Cheers,
Kris

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!