Why do I receive an error, "Unable to write to the selected folder" when installing MATLAB?

23 views (last 30 days)
When I try to run the MathWorks Product Installer, I eventually run into an error reading, "Unable to write to the selected folder." How do I resolve this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 Mar 2025
Edited: MathWorks Support Team on 10 Apr 2025
On Windows, this error may occur due to the following reasons:
  • The MathWorks Product Installer is attempting to write to a folder that the user running it does not have permission to write to.
  • If the MathWorks Product Installer is not running with full administrative privileges. Attempting to select any folder will result in this error.
On Linux: 
This occurs when running the installer without sudo and trying to install in a sudo-required folder (such as the default location, /usr/local/MATLAB/R20XXy).
To get around, either run the installer with sudo or select a different location which doesn't require sudo. For more information on how to install MATLAB on Linux, follow the documentation below:
Download and Install MATLAB

More Answers (0)

Categories

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

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!