Note: For information about removing (uninstalling) a MATLAB installation noninteractively, see Uninstall 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.
Note: You need a File Installation Key to use an installer properties file. |
To run the installer noninteractively, perform these steps:
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 folder on the MathWorks DVD
or in the top level of the folder where you downloaded the software
(typically, C:\Users\
).user
\AppData\Local\Temp\mathworks_downloads
For example, on a Windows system, you might execute this command:
copy Z:\installer_input.txt C:\temp\my_installer_input.txt
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.
destinationFolder=C:\Program Files\MATLAB\R2015b
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.
Save your changes to the file.
Start the installer using the -inputFile
option
to specify the full path of your installer properties file as a command-line
argument.
For example, on Windows systems, click the Start menu and select the Run option. In the Run dialog box, enter
setup.exe -inputFile C:\temp\my_installer_input.txt
For information about specifying an installer properties file on Linux and Mac OS X systems, see the instructions in the installer properties file template.