Why does the update installer fail with "Error: ENOENT: no such file or directory" and mentions an appdata folder?

30 views (last 30 days)
I am unable to update my MATLAB installation. The update installer fails with this error:
matlabroot (from -d): [C:\Program Files\MATLAB\R2016b]
Products dir: C:\Program Files\MATLAB\R2016b\appdata\products
Components dir: C:\Program Files\MATLAB\R2016b\appdata\components
fs.js:904
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir 'C:\Program Files\MATLAB\R2016b\appdata\products'

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Jul 2019
Edited: MathWorks Support Team on 15 Jul 2019
The update installer fails because the appdata folder is missing in your MATLAB installation.
These files are needed for MATLAB to run properly, and the update installer cannot recreate these.
Since your MATLAB installation is corrupted, you will have to perform a clean re-installation.
1. How to do a clean uninstall
- Windows System: <https://www.mathworks.com/matlabcentral/answers/131519 How do I perform a clean installation of MATLAB on a Windows system? >
2. Reinstall MATLAB

More Answers (0)

Categories

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

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!