MATLAB: Is there a danger in renaming a Matlab install folder

installationpaths

I have Matlab R2019b installed under Windows 10 in the usual place,
C:\Program Files\MATLAB\R2019b
but I would now like to rename this folder. I was wondering if there were known dangers in doing so. When I installed Matlab, did anything get configured that makes reference to the original path name, and which will be confused by my renaming it?

Best Answer

The registry would have been configured to use that path . You might be able to use the File Association Fix contribution in the File Exchange.
The default path, pathdef.m, would have been configured to use that path. You can often use restoredefaultpath; rehash toolboxcache; savepath to deal with that.
If you have downloaded any contributions using the Add-On Explorer, MATLAB could potentially lose track of them.
Related Question