MonkeyProof Solutions Forum

Code Checker for MATLAB => Installation and license management => Topic started by: Co Melissant on 03 July, 2019, 13:09:23

Title: Why does installing a new version not replace the older version?
Post by: Co Melissant on 03 July, 2019, 13:09:23
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.
Title: Re: Why does installing a new version not replace the older version?
Post by: Erik Grassens on 03 July, 2019, 13:14:29
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 (https://forum.monkeyproofsolutions.nl/index.php?action=dlattach;topic=13.0;attach=4)) 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')