byebot

Author Topic: Why does installing a new version not replace the older version?  (Read 376 times)

Co

  • Staff
  • *
  • Posts: 2
    • View Profile
When I install a newer version of the toolbox, it creates a new folder, with a number in it, like "Toolboxes\CC4M(16)\".
I expected the current installation to be replaced instead.

Erik Grassens

  • Staff
  • *
  • Posts: 2
    • View Profile
This is a limitation of the way Java classes are loaded in MATLAB, which prevents the JAR-files in the toolbox from being removed. As a consequence the toolbox installation folder is not empty and a new folder is created. The below script can be used to upgrade / reinstall toolbox.

The (upgrade.m) script can be used to automatically take all necessary steps to upgrade the toolbox. Place the script anywhere but not in the toolbox installation folder. Then run the following command:
Code: [Select]
>> upgrade('CC4M', 'C:\Users\your.name\Downloads\CC4M_2.3.0.mltbx')
« Last Edit: 27 August, 2019, 12:02:35 by Erik Grassens »