Starting the AddOn Manager from the command line

I am trying to write some routines to assist users with automatically updating software. It would be helpful if I could run a command that would open the AddOn Manager but so far I can't find one. Does one exist?

댓글 수: 3

Chris
Chris 2023년 1월 16일
I think you can re-run the installer to get add-ons.
Chris
Chris 2023년 1월 16일
편집: Chris 2023년 1월 16일
Or run matlab with a script that runs matlab.addons.install.
Not much functionality available in that--you'd have to overwrite everything, unless you can find a way to check the versions online. Hardware support packages are updated more frequently, and have a more useful function.
upgradePreviouslyInstalledSupportPackages
I am looking for a command to load the Add On Manager GUI rather than run the update on my software. The reason is that the user might want to explore what the changes are before comitting themselves.

댓글을 달려면 로그인하십시오.

답변 (2개)

Chris
Chris 2023년 2월 11일
편집: Chris 2023년 2월 11일

1 개 추천

I've just run across the Matlab Package Manager, though I'm not sure it would be helpful for your case either.
Aditya Jha
Aditya Jha 2023년 1월 18일
Hi!
You can use matlab.addons.install()” to install an add on through command line. Here is the example code the demonstrates that
>>matlab.addons.install(toolboxFile,agreeToLicense)
Please refer to the following documentation for more details: https://www.mathworks.com/help/matlab/ref/matlab.addons.install.html
You can also use The MATLAB Production Server Add-On Explorer provides a graphical interface to find, install, and manage MATLAB Production Server add-ons.
>>prodserver.addon.Explorer
Please refer to the following documentation for more details: https://www.mathworks.com/help/mps/ml_code/manage-add-ons.html

댓글 수: 4

Thanks, but am looking for a command to open the Add On Manager GUI, not a way to install an add-on from the CLI.
You can open the MATLAB Production Server Add-on Explorers that provides a graphical interface to manage add-ons
>>prodserver.addon.Explorer
The Production Server is an optional toolbox. I can't assume my users will have it so it's not a solution, sadly.
The "pathtool" command opens the GUI for modifying the MATLAB path. Is there no command to open the already built-in Addon Manager GUI?
xingxingcui
xingxingcui 2024년 3월 6일
편집: xingxingcui 2024년 3월 6일
Current command "matlab.addons.install" only support install .mltbx toolbox file, if i have .mlappinstall file(suitable for App) and .mlpkginstall file(suitable for hardware support package) need to programmally install,how to do it?@Aditya Jha
>>matlab.addons.install(toolboxFile,agreeToLicense)
------update------
Now I remember MPM is nice install tool. Thanks for @Chris 's mentation.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2023년 1월 15일

편집:

2024년 3월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by