To install the MATLAB® Runtime:
Start the MATLAB Runtime installer.
Computer | Steps | |
---|---|---|
Windows® | Double-click the compiled MATLAB code package self-extracting
archive file, typically named ,
where my_program is the name of the MATLAB code.
This extracts the MATLAB Runtime installer from the archive, along
with all the files that make up the MATLAB Runtime. Once all the
files have been extracted, the MATLAB Runtime installer starts
automatically. | |
Linux® | Extract the contents of the compiled package,
which is a Zip file on Linux systems, typically named, unzip MCRInstaller.zip Run the MATLAB Runtime installer script, from the directory where you unzipped the package file, by entering: ./install \home\USER , you run the ./install from \home\USER .
| |
Mac |
When the MATLAB Runtime installer starts, it displays a dialog box. Read the information and then click Next to proceed with the installation.
Specify the folder in which you want to install the MATLAB Runtime in the Folder Selection dialog box.
Note: On Windows systems, you can have multiple versions of the MATLAB Runtime on your computer but only one installation for any particular version. If you already have an existing installation, the MATLAB Runtime installer does not display the Folder Selection dialog box because you can only overwrite the existing installation in the same folder. |
Confirm your choices and click Next.
The MATLAB Runtime installer starts copying files into the installation folder.
On Linux and Mac systems, after copying files to your disk, the MATLAB Runtime installer displays the Product Configuration Notes dialog box. This dialog box contains information necessary for setting your path environment variables. Copy the path information from this dialog box and then click Next.
Click Finish to exit the installer.
To install the MATLAB Runtime without having to interact with the installer dialog boxes, use one of the MATLAB Runtime installer's non-interactive modes:
silent—the installer runs as a background task and does not display any dialog boxes
automated—the installer displays the dialog boxes but does not wait for user interaction
When run in silent or automated mode, the MATLAB Runtime installer uses default values for installation options. You can override these defaults by using MATLAB Runtime installer command-line options or an installer control file.
Note: When running in silent or automated mode, the installer overwrites the default installation location. |
To install the MATLAB Runtime in silent mode:
Extract the contents of the MATLAB Runtime installer
file to a temporary folder, called $temp
in this
documentation.
Note: On Windows systems, manually extract the contents of the installer file. |
Run the MATLAB Runtime installer, specifying the -mode
option
and -agreeToLicense yes
on the command line.
Note:
On most platforms, the installer is located at the root of the
folder into which the archive was extracted. On Windows 64, the
installer is located in the archives |
Platform | Command |
---|---|
Windows | setup -mode silent -agreeToLicense yes |
Linux | ./install -mode silent -agreeToLicense yes |
Mac OS X | ./install -mode silent -agreeToLicense yes |
Note:
If you do not include the |
View a log of the installation.
On Windows systems, the MATLAB Runtime installer creates
a log file, named mathworks_
,
where username
.logusername
is your Windows log-in
name, in the location defined by your TEMP
environment
variable.
On Linux and Mac systems, the MATLAB Runtime installer displays the log information at the command prompt, unless you redirect it to a file.
When run in one of the non-interactive modes, the installer will use the default values unless told to do otherwise. Like the MATLAB installer, the MATLAB Runtime installer accepts a number of command line options that modify the default installation properties.
Option | Description |
---|---|
-destinationFolder | Specifies where the MATLAB Runtime will be installed. |
-outputFile | Specifies where the installation log file is written. |
-automatedModeTimeout | Specifies how long, in milliseconds, that the dialog boxes are displayed when run in automatic mode. |
-inputFile | Specifies an installer control file with the values for all of the above options. |
Note:
The MATLAB Runtime installer archive includes an example
installer control file called |