Main Content

compiler.runtime.download

Download MATLAB Runtime installer

Description

example

compiler.runtime.download downloads the MATLAB® Runtime installer matching the version and update level of MATLAB from where the command is executed. If the installer has already been downloaded to the machine, it returns a message stating that the MATLAB Runtime installer exists and specifies its location. If the machine is offline, it returns a message that contains the download URL to the installer.

Examples

collapse all

Download the MATLAB Runtime installer on Windows® using MATLAB R2022a.

compiler.runtime.download
Downloading MATLAB Runtime installer. It may take several minutes...

MATLAB Runtime installer has been downloaded to:
 "C:\Users\username\AppData\Local\Temp\username\MCRInstaller9.12\MATLAB_Runtime_R2022a_win64.zip"

If you already have downloaded the latest version of the MATLAB Runtime installer, this command gives the following result on Windows using MATLAB R2022a:

compiler.runtime.download
An existing MATLAB Runtime installer was found at:
 "C:\Users\username\AppData\Local\Temp\username\MCRInstaller9.12\MATLAB_Runtime_R2022a_win64.zip"

If you are not connected to the internet, this command displays a URL that you can open in a web browser to download the MATLAB Runtime installer. The URL corresponds to the version and update level of MATLAB, as indicated by <release>/Release/<update_level>.

Using MATLAB R2022a with no updates, display the download URL for MATLAB Runtime.

compiler.runtime.download
Downloading MATLAB Runtime installer. It may take several minutes...

Error using compiler.runtime.download
A connection could not be established to download the Runtime Installer.
Download the runtime from:
https://ssd.mathworks.com/supportfiles/downloads/R2022a/Release/0/deployment_files/installer/complete/win64/MATLAB_Runtime_R2022a_win64.zip
and update the runtime location in Compiler Settings.

Version History

Introduced in R2018a