For releases 2018a and newer:
The standalone MCR installer executable does not ship with the MATLAB Compiler™ product. You can run the following command to install MATLAB Compiler Runtime (MCR). The command will only work if you have MATLAB Compiler installed and activated.
>> compiler.runtime.download
If you have a working internet connection (and do not have a proxy or firewall) this command will automatically start the download. If your machine is offline, it returns a message that contains the download URL to the correct installer version.
When you package a MATLAB function using the Application Compiler or Library Compiler apps and select the option "Runtime included in package", you are prompted to download the MATLAB Runtime installer. Once you accept, the MATLAB Runtime installer is downloaded and packaged with the application.
If you do not have internet access, you need to download the MATLAB Runtime installer from a computer that is connected to the Internet. After downloading the MATLAB Runtime installer, you will need to transfer the installer to the computer where you want to install the MCR.
As of R2012a, the MATLAB Compiler Runtime (MCR) can be retrieved from our website from the MATLAB Compiler page:
For releases R2017b and earlier:
The MATLAB Compiler Runtime (MCR) installer must be retrieved from a computer that has MATLAB and MATLAB Compiler installed. The location of the MATLAB Compiler Runtime (MCR) installer depends on the operating system of the computer. You can find the location of the MATLAB Compiler Runtime (MCR) installer by running the below in MATLAB:
>> mcrinstaller
Please see below for some example paths:
Windows:
$MATLAB\toolbox\compiler\deploy\win32|64\MCRInstaller.exe
Mac OS X:
$MATLAB/toolbox/compiler/deploy/maci32|64/MCRInstaller.zip
Unix/Linux:
$MATLAB/toolbox/compiler/deploy/glnx86|a64/MCRInstaller.bin
(where $MATLAB is the location of your MATLAB installation directory or installation media)