MATLAB Answers


How can I install MATLAB on the D drive?

Asked by Takehiro Tanaka on 13 Feb 2017
Latest activity Edited by Daniel Kamand on 4 Nov 2018
I specified the installation folder in the D drive but the computer automatically install MATLAB in the downloads folder as default name "MathWorks" in C DRIVE even though I manually specified the destination in D drive. All other program are I can install on D drive but it seems I cannot install MATLAB on the D drive. So is it possible to install MATLAB on D drive?


Sign in to comment.

2 Answers

Answer by Takehiro Tanaka on 15 Feb 2017
Edited by Walter Roberson
on 15 Feb 2017
 Accepted Answer

I actually understood how to solve this problem. In fact, we have to use a command prompt to change the installation directory. the procedure is the following:
1. Open the command prompt (You can find it by typing 'cmd' from the start menu).
2. Type the command 'd:' to change the current directory to D drive
3. Type the command 'cd D:\the address of the folder needed to install matlab products' to go to specific directory.
4. Type the command 'setup -downloadFolder D:\the address of the folder where you want to install' to setup the default destination to install.
Note that the way you type the address of folder is you can easily find on google.


Now I am getting this:
D:\MATLAB>setup -downloadFolder D:\MATLAB 'setup' is not recognized as an internal or external command, operable program or batch file.
Any suggestions?
You might need to copy the installer into that directory.
the installation worked, but after pressing on the shortcut created on my desktop a message showed up prompting me to delete the shortcut because the location may have changed or has been moved. But every single file related to matlab when clicking on it said exactly the same thing, so when I accidently clicked on yes, to delete the shortcut,I gained freespace equal to the size of the installation on the D drive.Now I'm starting from the begining, but I don't want to have the same problem because it's really time consuming. *What I'm typing in the command prompt is the following:
'cd: D:\THE FILE CREATED AUTOMATICALLY WHEN RUNNING "matlab_R2018b_win64" and where the setup file is'
' setup -downloadFolder D:\A FOLDER I CREATED ON THE D DRIVE*
After pressing Enter, the installation process started and then I am prompted to choose an installation folder initially given to me as "C:\Program Files\MATLAB\R2018b" I then changed it to the folder I created initially, which is the same folder I typed its adress in the command prompt,which is actually in D. So what's the problem with that? Do I probably have to put the installation folder in the C drive? but when I am oing this I'm having an warning that I have no enough space on the C drive. but shouldn't this folder be the same as the one I specified in the command propmt? Your help is so appreciated!

Sign in to comment.

Answer by Steven Lord
on 13 Feb 2017

If you told the Installer to install in a folder on the D drive, it should be installing in the specified folder. As part of the installation process it will download files needed by the installation process to a temporary directory, and that directory may or may not be on the D drive depending on how your machine is configured. Those files are used by the installation process but they are not the actual installation.
From the documentation (specifically item 1 in step 1):
"When you select an installer on the website, you receive the files that the installer needs in order to run on your selected platform, not the product files. Run the installer to select products that you want to install on the computer where you are logged in. The installer downloads the products that it needs from MathWorks, if necessary."
I think this Answer describing how to change where the files are downloaded is still up-to-date.


Thank you for your answer. I actually went through the step 6 in the documentation, specifying the install folder in D drive, but it didn't install on the D drive. It in fact installed on the C drive downloads folder. Note that I did download the files needed by the installation process on the D drive easily, but could not install the matlab products on D drive. Also my C drive has only 5GB left compared to 400GB space in D drive, so I needed to install matlab on D drive. Also note that the laptop I am using is ASUS T100 which has a separate 500 GB hard drive as a D drive on the keyboard in addition to main C drive.
That's odd. I think you should be able to install on the D drive. You should contact Technical Support and work with them to determine why the installer didn't install where you told it to install.

Sign in to comment.