Main Content

mcrinstaller

Display version and location information for MATLAB Runtime installer corresponding to current platform

Description

example

[installer_path, major, minor, platform] = mcrinstaller displays information about available MATLAB® Runtime installers.

If no MATLAB Runtime installer is found, you are prompted to download an installer using the command compiler.runtime.download.

You must distribute the MATLAB Runtime library to your end users to enable them to run applications developed with MATLAB Compiler™ or MATLAB Compiler SDK™.

See Install and Configure MATLAB Runtimefor more information about the MATLAB Runtime installer.

Examples

collapse all

Display the location of MATLAB Runtime installers for a particular platform. This example shows output for a win64 system. The release number is called R20xxx indicating the release for which the MATLAB Runtime installer has been downloaded.

mcrinstaller
C:\Program Files\MATLAB\R20xxx\toolbox\compiler\deploy\win64\MCR_R20xxx_win64_installer.exe

For example, for R2018b, the path would be:

C:\Program Files\MATLAB\R2018b\toolbox\compiler\deploy\win64\MCR_R2018b_win64_installer.exe

Output Arguments

collapse all

The installer_path is the full path to the installer for the current platform.

The major is the major version number of the installer.

The minor is the minor version number of the installer.

The platform is the name of the current platform (returned by COMPUTER(arch)).