After you create an installer for your compiled application, you can install it interactively using a graphical interface or noninteractively using command-line arguments.
Complete the following steps according to your operating system to install the
magicsquare interactively using
Start the installer.
Double-click the file
In the terminal, type:
sudo -H ./MyAppInstaller
In the terminal, type:
You may need to enter an administrator username and
password after you run
If you want to connect to the Internet using a proxy server, click Connection Settings. Enter the proxy server settings in the provided window and click OK. Click Next.
Choose the installation folder for the application. To create a desktop shortcut, check the box labeled Add a shortcut to the desktop. Click Next.
If MATLAB® Runtime is not already installed on your machine, choose the installation folder for the MATLAB Runtime libraries and click Next.
Select Yes to accept the terms of the MATLAB Runtime license agreement and click Next.
Click Install > to begin the installation.
On Linux and macOS platforms, after copying files to your disk, the 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, save it to a text file, and then click Next. For information on setting environment variables, see Set MATLAB Runtime Path for Deployment.
Click Finish to exit the installer.
If you accepted the default settings, you can find the installed application in one of the following locations:
If you have many installations to perform, you can specify installation arguments as command-line arguments or in an installer control file to save time and prevent errors.
To install an application without having to interact with the installer dialog boxes, use one of the following noninteractive 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.
On Linux and macOS systems, the installer displays information necessary for setting your environment variables in the Product Configuration Notes dialog box. If you use the installer in automated or silent mode, you must locate your MATLAB Runtime installation directory in order to set the library path after installation. For more information, see Set MATLAB Runtime Path for Deployment.
When running in silent or automated mode, the installer overwrites the installation location.
To install the application in silent mode:
Run the installer on the command line and specify the options
-mode silent and
If you do not include the
option, the installer will not install the application.
View a log of the installation.
On Windows systems, the installer creates a log file named
username is your Windows login name, in the location defined by your
TEMP environment variable.
On Linux and macOS systems, the installer displays the log information at the
command prompt and will also save it to a file if you use the
When run in one of the noninteractive modes, the installer uses the default values for installation options unless you specify otherwise. Like the MATLAB installer, the application installer accepts a number of command-line options that modify the default installation properties. Separate each option and its value with a space.
|Specifies where the application and MATLAB Runtime is installed.||In the destination folder, MATLAB Runtime is installed in a folder named after the version number, for example, v911.|
|Specifies where the installation log file is written.|
|Specifies how long, in milliseconds, that the dialog boxes are displayed when run in automated mode.||The default value is 1000 milliseconds.|
|Specifies whether to create a desktop shortcut icon for the installed application.||This option is only used on Windows.|
|Specifies whether to create a Start Menu shortcut icon for the installed application.||This option is only used on Windows.|
|Specifies an installer control file that contains your command-line options and values.||Omit the dash before each option, and put each option and value on a separate line.|