Documentation Center

  • Trial Software
  • Product Updates

matlab.apputil.install

Install app from a .mlappinstall file

Syntax

  • appinfo = matlab.apputil.install(appfile) example

Description

example

appinfo = matlab.apputil.install(appfile) installs the specified app file and returns information about the app.

Examples

expand all

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

expand all

appfile — Full or partial path to .mlappinstall filestring

Full or partial path of the app file you want to install, specified as a string.

Example: 'C:\myguis\myapps\myapp.mlappinstall'

Output Arguments

expand all

appinfo — Information about installed appstructure

Information about the installed app, returned as a structure with the fields:

status — Installation status'installed' | 'updated'

Installation status, returned as a string:

  • 'installed' — New app is installed.

  • 'updated' — Previously installed app is updated.

id — Unique identifierstring

Unique identifier for the installed app, returned as a string

The ID is for use when running or uninstalling the app programmatically.

location — Folder where app is installedstring

Folder where app is installed, returned as a string

name — Name of installed appstring

Name of installed app as it appears in the apps gallery, returned as a string

See Also

| |

Was this topic helpful?