Main Content

mcrinstaller

Display version and location information forMATLABRuntimeinstaller corresponding to current platform

Description

example

[installer_path,major,minor,platform] = mcrinstallerdisplays information about availableMATLAB®Runtimeinstallers.

If noMATLAB Runtimeinstaller is found, you are prompted to download an installer using the commandcompiler.runtime.download.

You must distribute theMATLAB Runtimelibrary to your end users to enable them to run applications developed withMATLAB Compiler™orMATLAB Compiler SDK™.

SeeInstall and Configure MATLAB Runtime(MATLAB Compiler SDK)for more information about theMATLAB Runtimeinstaller.

Examples

collapse all

Display the location ofMATLAB Runtimeinstallers for a particular platform. This example shows output for awin64system. The release number is calledR20xxxindicating the release for which theMATLAB Runtimeinstaller 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

Theinstaller_pathis the full path to the installer for the current platform.

Themajoris the major version number of the installer.

Theminoris the minor version number of the installer.

Theplatformis the name of the current platform (returned byCOMPUTER(arch)).

Version History

Introduced in R2009a