Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

collapse all

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

collapse all

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

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

Output Arguments

collapse all

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

Installation status, returned as one of the following:

  • 'installed' — New app is installed.

  • 'updated' — Previously installed app is updated.

Unique identifier for the installed app, returned as a character vector.

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

Folder where app is installed, returned as a character vector.

Name of installed app as it appears in the apps gallery, returned as a character vector.

Introduced in R2012b

Was this topic helpful?