MATLAB Answers


Why do I receive a Winzip error "Error 5 running command .\setup.exe" during the installation process on Windows from downloads?

I am not able to install MATLAB on Windows and get the following error message:
Error 5 running command .\setup.exe
setup.exe is not a valid win32 application





3 Answers

Answer by MathWorks Support Team on 13 Sep 2016
Edited by MathWorks Support Team on 13 Sep 2016
 Accepted Answer

There are a few reasons why "Error 5" may occur:
Product Incompatibility
This error can occur when attempting to install MATLAB 64-bit on a 32-bit operating system. 
MATLAB 64-bit cannot be installed on Windows 32-bit, even if your processor is 64-bit. 
SOLUTION: Install MATLAB 32-bit (R2015b or earlier).
Corrupt Download / Antivirus Software
This error can occur if the installation files are corrupt. 
Antivirus software will sometimes scan and corrupt downloaded files. 
SOLUTION: Temporarily disable any antivirus software and download a new copy of the installer. 
Attempting to run installer without extracting from zip
This error can occur if the installer executable (setup.exe) was not extracted from the zip.
The installation files come packaged in a WinZip self-extractor (matlab_r20xxx_installer.exe) and the files must first be extracted. 
SOLUTION: Right-click on the zip, select 'Extract to' from the WinZip menu, and choose an empty destination folder.  Once the zip file has been extracted, run the installer executable (setup.exe) from the new folder.
Windows Permissions
This error can occur if the setup.exe file does not have sufficient permissions to run. 
SOLUTION: Navigate to the folder where setup.exe was extracted (typically _temp_matlab_R20xxx_win64) and right-click on setup.exe and select "Run as administrator".  If you do not have administrator privileges, please contact your IT department for further information on obtaining these privileges and installing software.


Thank you for your help. Can you please give my the link where to get R2015b version?
Hello. I ran into this also. Can I have the 32-bit download link? I need to install Matlab to do my hw. Thanks!

Sign in to comment.