Install the MATLAB Runtime

Install the MATLAB Runtime Interactively

To install the MATLAB® Runtime:

  1. Start the MATLAB Runtime installer.

    ComputerSteps
    Windows®Double-click the compiled MATLAB code package self-extracting archive file, typically named my_program_pkg.exe, 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, my_program_pkg.zip, where my_program is the name of the compiled MATLAB code. Use the unzip command to extract the files from the package.

    unzip MCRInstaller.zip

    Run the MATLAB Runtime installer script, from the directory where you unzipped the package file, by entering:

    ./install
    For example, if you unzipped the package and MATLAB Runtime installer in \home\USER, you run the ./install from \home\USER.

      Note:   On Mac systems, you may need to enter an administrator username and password after you run ./install.

    Mac

  2. When the MATLAB Runtime installer starts, it displays a dialog box. Read the information and then click Next to proceed with the installation.

  3. 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.

  4. Confirm your choices and click Next.

    The MATLAB Runtime installer starts copying files into the installation folder.

  5. 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.

  6. Click Finish to exit the installer.

Install the MATLAB Runtime Non-Interactively

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.

Running the Installer in Silent Mode

To install the MATLAB Runtime in silent mode:

  1. 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.

  2. 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 bin folder.

    PlatformCommand
    Windowssetup -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 -agreeToLicense yes the installer will not install the MATLAB Runtime.

  3. View a log of the installation.

    On Windows systems, the MATLAB Runtime installer creates a log file, named mathworks_username.log, where username 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.

Customizing a Non-Interactive Installation

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.

OptionDescription
-destinationFolderSpecifies where the MATLAB Runtime will be installed.
-outputFileSpecifies where the installation log file is written.
-automatedModeTimeoutSpecifies how long, in milliseconds, that the dialog boxes are displayed when run in automatic mode.
-inputFileSpecifies 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 installer_input.txt. This file contains all of the options available for a full MATLAB installation. Only the options listed in this section are valid for the MATLAB Runtime installer.

Was this topic helpful?