How can I install an App simultaneously with a toolbox?

조회 수: 3 (최근 30일)
Meade
Meade 2016년 4월 14일
답변: Adrian Cherry 2022년 12월 15일
I have a toolbox that I have created for deployment within our team. All the inherent functionality seems to work fine.
However, I have a primary GUI that I would like the user to be able to launch from the APPS tab. I know how to package an APP and I know how to package a toolbox... How do I package an APP in a toolbox? If I do them separately, then it becomes a mess of ensuring that relative path calls all work.
Many thanks.

채택된 답변

Meade
Meade 2016년 9월 6일
Since no one answered, I'll leave this for posterity.
To have an APP install automatically with a distributed TOOLBOX, simply save the *.mlappinstall file in the toolbox directory. Then when compiling the toolbox, be sure to Refresh the area with Help, Documentation, and Apps.
Take care that you compile the APP using the same source files as the toolbox, otherwise, the APP may have dependency problems.

추가 답변 (1개)

Adrian Cherry
Adrian Cherry 2022년 12월 15일
Hi,
Late to the party here. Your solution seems to be the best available given the packaging dialogs supplied I'm but not entirely convinced, it should do better.
As far as I can see the mlappinstall file stores it's own copy of the functions required to run, i.e. duplicating the toolbox functions. This means that the toolbox ends up being bloatware with multiple copies of files. Also potentially leading to much confusion where if you forget update the app packaging potentially have the toolbox function at one version but the mlappinstall file has a copy of the older version of the function.

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by