matlab.apputil.install
Install app from a .mlappinstall
file
Description
Examples
Install App and Display Information About the Installation
Assume you have downloaded an app from File
Exchange named EmployeeData
. Install it and return
information about the installation to the variable appinfo
.
Later, if you decide to deinstall the app programmatically, you have
the app id required to do so.
appinfo = matlab.apputil.install... ('C:\myguis\myapps\EmployeeData.mlappinstall')
appinfo = id: 'EmployeeDataApp' name: 'EmployeeData' status: 'installed' location: 'C:\myguis\myapps\EmployeeData.mlappinstall'
Input Arguments
appfile
— Full or partial path to .mlappinstall
file
character vector | string scalar
Full or partial path of the app file you want to install, specified as a character vector or string scalar.
Example: 'C:\myguis\myapps\myapp.mlappinstall'
Example: "C:\myguis\myapps\myapp.mlappinstall"
Output Arguments
appinfo
— Information about installed app
structure
Information about the installed app, returned as a structure with the fields:
status
— Installation status
'installed'
| 'updated'
Installation status, returned as one of the following:
'installed'
— New app is installed.'updated'
— Previously installed app is updated.
id
— Unique identifier
character vector
Unique identifier for the installed app, returned as a character vector.
The ID is for use when running or uninstalling the app programmatically.
location
— Folder where app is installed
character vector
Folder where app is installed, returned as a character vector.
name
— Name of installed app
character vector
Name of installed app as it appears in the apps gallery, returned as a character vector.
Version History
Introduced in R2012b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)