How to overcome install error using buildtool

When using a build file I create a json meta data to include release version, GUID, author details, getting stated guide etc. I include these details in the package task, meaning that if I unzip my .mtlbx file it does not have a single metatdata.xml folder, but rather a folder with the various components. Therefore, when I install, I am using the matlab.addons.install rather than matlab.addons.toolbox.installToolbox.
During my install task, if I have a previously installed version of my software, I run into an issue where the automated uninstall (that is part of the install) attempts to run. This fails because, although the software is listed in the matlab.addons.installedAddons, it is not found in the internal addons registry, so can't be removed this way. If I manually remove it using the addon Manager, I do not have any issues. Is there a way to overcome this, or a fix in future releases?

2 Commenti

Submit this to Mathworks as an official support/enhancement request at <Product Support Page>
I have submitted a ticket, thank you.

Accedi per commentare.

Risposte (0)

Categorie

Prodotti

Release

R2024b

Richiesto:

il 1 Giu 2026 alle 17:04

Commentato:

il 1 Giu 2026 alle 19:47

Community Treasure Hunt

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

Start Hunting!

Translated by