Why do I receive a message stating "Error finding installer class" when trying to install MATLAB on Windows?

217 views (last 30 days)
After starting the installation, I receive the following error message:
Error finding installer class
This error may also manifest as:
Invalid disk
Cannot find appropriate setup.exe file.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Aug 2017
Edited: MathWorks Support Team on 14 Aug 2017
There are several circumstances which may cause this error:
  • Non-ASCII characters (e.g. !@#$&^?) are present in the path to the MATLAB installation folder, or the name of the folder itself
  • Non-ASCII characters are present in the path to the Windows TEMP folder, the name of the TEMP folder itself, or the values of the TEMP and/or TMP environment variables
  • Non-ASCII characters are present in the path to the folder containing the MATLAB installer, or the name of the folder itself
  • There is a problem with the installation files (damaged DVD, corrupt or incomplete downloads)
  • MATLAB is already installed and you are running the setup.exe from the installation folder/directory
To resolve this issue:
Verify that the MATLAB installer is in a folder that contains ASCII characters only, and/or move the folder to the root of your C drive.
If the installer launches, verify that you are installing MATLAB into a folder with ASCII characters only.
Verify that the Windows TEMP and TMP environment variables contain ASCII characters only.
Windows 7:
  1. Right click on “Computer” and select “Properties”
  2. Click on “Advanced Settings” on the left side
  3. Click “Yes” if User Account Control prompt asks “Allow changes”)
  4. Click on the “Environment Variables” button (bottom)
Windows 8.1:
  1. Right click on “This PC” and select “Properties”
  2. Click on “Advanced Settings” on the left side
  3. Click “Yes” if User Account Control prompt asks “Allow changes”)
  4. Click on the “Environment Variables” button (bottom)
Windows 10:
  1. Type “environment variable” into the search field and select “Edit the system environment variables” to open System Properties
  2. Click “Yes” if User Account Control prompt asks “Allow changes”)
  3. Click “Environment Variables” button (bottom)
Check the TMP and TEMP variables under both System and User. If the variable is set to a value between percent signs (e.g. %TMP%) or to a path containing only ASCII characters, then the variable does not need to be modified.
If either of the variables are set to values that contain non-ASCII characters (e.g. !@#$&^?), the variables must be modified. To do so, double click on the variable or highlight it and choose “Edit”.
After modifying variables, restart the computer and try running the MATLAB installer again.
Run the MATLAB installer in Windows Safe mode.
If the installation folder and the TEMP/TMP folders all contain only ASCII characters, try running the MATLAB installer in Windows Safe Mode with networking. To boot your computer into safe mode, follow the steps below.
Windows 7:
  1. Open the Start menu
  2. Type msconfig and press enter
  3. Click on the tab labeled “Boot”
  4. Check the box labeled “Safe boot”
  5. Click the button labeled “Network”
  6. Restart your computer
Windows 8.1:
  1. Press the “Start” button
  2. Right click on the power button in the lower right
  3. Hold shift and click on “Restart”
  4. Click on “Troubleshoot”
  5. Click on “Advanced options”
  6. Click on “Windows Startup Settings”
  7. Click on “Restart”
  8. After your computer restarts, enter the number “5”
Windows 10:
  1. Open the Start menu
  2. Click “Power”
  3. Hold shift and click on “Restart”
  4. Click on “Troubleshoot”
  5. Click on “Advanced options”
  6. Click on “Windows Startup Settings”
  7. Click on “Restart”
  8. After your computer restarts, enter the number “5”
Use different installation files
If the installer does not work after the workarounds above, the installer may be corrupt. Redownload the installation files from the MathWorks website and clear the installer’s download cache by deleting the “MathWorks” folder in your “Downloads” folder.
  19 Comments

Sign in to comment.

More Answers (13)

Peter Mortensen
Peter Mortensen on 1 Jul 2016
We had the same issue... We got the message as attached. First we checked the Enviromental Variables and found that there were not used any signs in the text like !@ and so on. So that was NOT the issue in our case.
Downloading the file and running it from the "Downloads" folder on Windows computer turned out to be the reason for this error warning. We simply dragged the "_temp_matlab_R2016a_win64" into the root folder "C:\Program Files" and tried to run the program through the "C:\Program Files\_temp_matlab_R2016a_win64\setup.exe" file within the folder.
This made it and we got into the installation process.
The installation process will take quite a while. It will download and install each function seperately, and currently we are at 20% of downloading MATLAB Compiler... So expect some time - turn on the TV and make a cup of coffee while you wait. This is way further than we got previosuly and expect it to work fully..
Good luck to you all out there :)
  4 Comments

Sign in to comment.


Andre
Andre on 26 May 2014
Hi,
the autoinstaller extracts into a Directory starting with "./_temp", ie. it tries to create an install Directory at the current directory. To me it seems that it doesn't look after the environment variables. You can copy the downloaded installer into eg. c:\Temp and then start a command prompt Switch to c:\Temp and run the installer from within the command prompt window. This will extract the temporary files and run the installer in GUI mode and works flawlessly.
Cheers
  7 Comments

Sign in to comment.


João Sarabando
João Sarabando on 11 Mar 2015
Hello, I`ve already tried all the solutions and they didn`t work. I`m trying to install r2015 in windows 8.1 64bits. Can anyone please help me?
  1 Comment
Shawn Lyons
Shawn Lyons on 1 Apr 2015
@João Sarabando
MATLAB Central is not regularly monitored for support questions, please contact MathWorks support for assistance.
-Shawn
MathWorks Support

Sign in to comment.


S.Hassan Al-Mosawi
S.Hassan Al-Mosawi on 25 Aug 2017
Edited: Image Analyst on 25 Aug 2017

Do like this video I was facing same problem.

"Error finding installer class" : https://www.youtube.com/watch?v=lTRTffiAZFc


Jaeho
Jaeho on 11 Jun 2014
Hello Thanks for the recommendations. I just moved the directory installation files to TEMP and my installation is running. Emerson Brandao

Manuel Lopez
Manuel Lopez on 8 Aug 2016
Thank you!!

Andre Beaulieu
Andre Beaulieu on 30 Nov 2016
I succeeded by saving the download on the computer and then by moving the saved directory in the c:. Finally I double clicked on Setup and EUREKA !

Artem Nikiforov
Artem Nikiforov on 10 Dec 2016
Hello, people. Nothing works. I do not know what to do.
<<
>>
  1 Comment
Kyle Perry
Kyle Perry on 28 Dec 2016
Hi Artem,
Based on your screenshot, this may be happening because of Non-Latin characters in your username. If you move the installer to the root of your C: drive you should be able to work around this issue.

Sign in to comment.


Balint Szili
Balint Szili on 10 Mar 2017
The installer should be updated, I have accents in my user name, and therefore in the standard path, too.

Muaaz Tariq
Muaaz Tariq on 1 Sep 2017
I have tried all the mentioned solutions, but I am still getting the same error on 2015 Matlab installtion. Any other solution?

Riyadh Alqamati
Riyadh Alqamati on 19 Jan 2018
Place the file in the disk (c or d) where the operating system is located, then run it

Juan Martin Maffi
Juan Martin Maffi on 1 Aug 2019
Hello everyone,
I am still having this problem and have tried all suggested solutions. Do you have any other ideas? I am installing Matlab R2018a on a Win 7 x64.
Many thanks

Utsha Sen
Utsha Sen on 14 Sep 2020
Hey there, My problem is quite different from everyone. I've installed it correctly & was working with it. But I was facing issues while adding on toolboxes. so I decideemd to uninstall it. But it ain't uninstalling. I've tried several times, but its giving me the same error messege "Error Finding Class". Help me out please!

Categories

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

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!