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
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)