compiler.runtime.customInstaller
语法
说明
compiler.runtime.customInstaller(
创建一个占用空间最小的 MATLAB® Runtime 安装程序,该安装程序仅安装运行使用 MATLAB Compiler™ 或 MATLAB Compiler SDK™ 创建的指定工件所需的 MATLAB Runtime 组件。您可以使用 installerName
, results
)results
(一个包含由任何 compiler.build
函数创建的由一个或多个 compiler.build.Results
对象组成的向量)指定工件。
compiler.runtime.customInstaller(
使用由 MATLAB Compiler 生成的 installerName
, filepath
)requiredMCRProducts.txt
文件的列表创建 MATLAB Runtime 安装程序。
compiler.runtime.customInstaller(___,
使用指定为一个或多个名称-值参量的额外选项创建 MATLAB Runtime 安装程序。选项包括输出文件夹、包类型和运行时交付方法。Name=Value
)
示例
输入参数
名称-值参数
提示
此函数创建的安装程序仅安装部分 MATLAB Runtime 组件,占用最少的空间。要下载完整的 MATLAB Runtime 安装程序,请参阅
compiler.runtime.download
。如果您要使用此函数创建的多个安装程序,则 MATLAB Runtime 会更新为包含所有这些安装程序中组件的最小子集。这意味着,通过使用每个编译创建的自定义安装程序,您可以使用相同的 MATLAB Runtime 实例运行多个 MATLAB Compiler 生成工件。
此函数创建的安装程序不安装 MATLAB Compiler 生成工件。要为打包的 MATLAB 代码创建安装程序,请参阅
compiler.package.installer
。