matlab.apputil.install
从 .mlappinstall
文件安装应用程序
说明
示例
安装 App 并显示相关的安装信息
假定已从 File Exchange 下载名为 EmployeeData
的应用程序。安装此应用程序并将相关的安装信息返回到变量 appinfo
。以后,如果您决定以编程方式卸载应用程序,只要有所需的应用程序 ID 即可卸载。
appinfo = matlab.apputil.install... ('C:\myguis\myapps\EmployeeData.mlappinstall')
appinfo = id: 'EmployeeDataApp' name: 'EmployeeData' status: 'installed' location: 'C:\myguis\myapps\EmployeeData.mlappinstall'
输入参数
appfile
— .mlappinstall
文件的完整或部分路径
字符向量 | 字符串标量
要安装的 App 文件的完整或部分路径,指定为字符向量或字符串标量。
示例: 'C:\myguis\myapps\myapp.mlappinstall'
示例: "C:\myguis\myapps\myapp.mlappinstall"
输出参数
appinfo
— 有关已安装应用程序的信息
结构体
有关已安装应用程序的信息,以包含下列字段的结构体形式返回:
status
— 安装状态
'installed'
| 'updated'
安装状态,返回为下列值之一:
'installed'
- 已安装新的应用程序。'updated'
- 已更新以前安装的应用程序。
id
— 唯一标识符
字符向量
已安装 App 的唯一标识符,以字符向量形式返回。
以编程方式运行或卸载应用程序时使用的 ID。
location
— 安装应用程序的文件夹
字符向量
安装 App 的文件夹,以字符向量形式返回。
name
— 已安装应用程序的名称
字符向量
出现在 App 库中的已安装 App 的名称,以字符向量形式返回。
版本历史记录
在 R2012b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 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)