Error: "The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at:""

32 views (last 30 days)
Hi, I'm trying to uninstall a bunch of toolboxes to free up some space on my computer, and when I go to the uninstaller program I get the following error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at: ... And it directs me to a .log file under a set of directories which I cannot find. Any suggestions on how to fix this?
Thanks!
  2 Comments
HWIK
HWIK on 11 Aug 2022
@Walter Roberson I am trying to uninstall it from the Add-On manager, but I am running Matlab on mac, so when I select a specific toolbox and click remove, it closes matlab itself and opens a different "uninstaller" app to uninstall the toolbox

Sign in to comment.

Answers (1)

Khalid
Khalid on 9 Nov 2022
Hi,
I understand that when you are trying to uninstall toolboxes, you are facing errors.
Generally, this error occurs if there is something wrong with your MATLAB path or if the files for the toolbox are either corrupt or do not exist anymore.
Here are a few suggested workarounds for this issue:
1) Restore your path to the default using the commands below, and then try to uninstall the toolbox through the Add-Ons Manager:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
2) Manually delete the corresponding MATLAB directory and its content, and then try to uninstall the toolbox through the Add-Ons Manager.
3) Reinstall the toolbox to get new files by running the MATLAB installer, and overwrite the files by selecting the toolbox again. Then, proceed to uninstall the toolbox.
4) Reinstall MATLAB and the desired toolboxes.
Hope this resolves the error.
Regards,
Khalid.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!