Main Content

Install Noninteractively

When to Install Noninteractively

If you have many installations of MATLAB® software to perform, and the information you need to enter for each installation is the same, you can put this information into a properties file and run the MathWorks® installer noninteractively. You specify the properties file on the command line when you start the installer and the file provides the installer with the information that you would otherwise provide interactively, using the installer dialog boxes. Noninteractive installation (also called silent installation) can save time and prevent errors.

Using Installer Properties File


You need a File Installation Key to use the installer properties file (installer_input.txt). For information about installation using a File Installation Key, see Install Products Using File Installation Key.

To run the installer noninteractively:

  1. Download the installer and product files. See the procedure in Download Products Without Installing.

  2. Ensure that the product files, including the MATLAB product installer, are available in an accessible location; for example, in the default downloads folder on your computer or on a network share. If the product files are located in a folder other than the default downloads folder on your computer, the installer file must be located in the same folder as the product files.

  3. Create an installer properties file.

    Make a copy of the installer properties file template, named installer_input.txt. This file is located in the top level of the folder where you downloaded the software.

    For example, on a Windows® computer, you might execute this command:

    copy Z:\installer_input.txt C:\temp\my_installer_input.txt
  4. Open your installer properties file using any text editor, and enter values for all the specified parameters. For example, to specify where you want to install products, set the value of the destinationFolder= parameter to the full path of the installation folder (make sure you are passing a full path; a relative path may cause the installer_input file to not be read correctly).


    For information about specifying an installer properties file on Linux and macOS computers, see the instructions in the installer properties file template (installer_input.txt).

    For example, on Windows it might be:

    destinationFolder=C:\Program Files\MATLAB\R2023a

    And on Linux® or Mac OS it might be:


    The installer properties file template contains descriptions of each parameter along with valid values. Specify your File Installation Key as the value of the fileInstallationKey= parameter.

  5. Save your changes to the file.

  6. Make sure you are in the folder where you downloaded the installer and product files. In a command window or terminal, start the installer using the -inputFile option to specify the full path of your installer properties file as a command-line argument.

    • Windows

      setup.exe -inputFile C:\temp\my_installer_input.txt
    • Linux and Mac OS use an install script, as shown:

      install -inputfile /tmp/my_installer_input.txt

Installation Log Files

During the installation and activation of MathWorks products, the product installer creates a log file that can be used to obtain information on the installation processes.

The installation log file is named mathworks_%username%.log and the activation log file is named aws_%username%.log. In both cases, %username% is the person running the installer.

To locate your log files, see Where are the MATLAB Installation and Log Files Located?

Related Topics