How do I change the default download directory for the MATLAB installer in R2014a or newer?

140 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Mar 2017
Starting in R2014a, the installer automatically tries to download the installation files to the Downloads folder (Windows) or your Home directory (Linux/Mac).If you have size limitations on either directory, you can change the default download directory by passing a -downloadFolder flag to the install script.
On Windows, and example command would look like this:
"C:\Users\Username\Downloads\MATLAB_R2017a\setup.exe" -downloadFolder "D:\Program Files\MATLAB\Downloads"
Alter the file paths in the command above to match where the setup.exe file is located, and where you would like the download folder to be.
On Linux or Mac OS X, this command would look like:
./install -downloadFolder /tmp/MathWorks
Zhan Su
Zhan Su on 14 Feb 2019
Edited: Zhan Su on 14 Feb 2019
My installation file just starts extracting something to a random directory it won't let me view where while extracting because if I click on the extraction window it just asks me if I want to cancel extraction. I tried the thing you suggested using cmd and it didnt work, maybe becuase the file I downloaded isn't the actual setup.exe and it extracts the setup.exe somewhere else which once again I can't find a way to view where. Is there any other way to change download folder. Also why changing the folder not be an option while installing? Seems like a terrible inconvinience to inflict on your users.

Sign in to comment.

More Answers (3)

Jorge David Martínez Aguilar
Hi there,
I have OS(C:) and an DATA (D:). I didnt want to install on my C:, because I didnt have have enough space, so I decided to install on D:.
My solution was:
1. D:\>MATLAB\_temp...setup.exe is where the .exe decompressed
2. D:\MATLAB is the folder where I wanted to install it
Thats it :)

Sign in to comment.

Jaeseok Park
Jaeseok Park on 26 Jan 2015
Hello. I am having the same problem. Can you give instructions on how to edit the install script?
Julie Keister
Julie Keister on 19 Sep 2019
This worked for me, but a missing step is that this works only after extracting the download file into C:\downloads\_temp_matlab_R2014b_win64, then change the directory to the folder that contains setup.exe. If changing to D:\, first type D:\ (without cd) to get into the D drive, then cd to the setup.exe directory within D. Finally, type 'setup -downloadFolder D:\whereveryouwantitogo'

Sign in to comment.

shaa shaa
shaa shaa on 1 Feb 2015
When I download I changed the part on computer name and when I go to my desktop icons, its say error 9. How can I fix this
  1 Comment
Shawn Lyons
Shawn Lyons on 23 Feb 2015
Edited: MathWorks Support Team on 19 Apr 2021
A license manager error -9 can typically be resolved by re-activating MATLAB. It is not related to the content of this support question.
A support article for license manager error -9 is available here:
MathWorks Support

Sign in to comment.


No tags entered yet.




Community Treasure Hunt

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

Start Hunting!