Why do I receive the errors "Winzip Error 5 running command .\setup.exe" or "This App can not run on your PC" during the installation process on Windows?

197 views (last 30 days)
I am not able to install MATLAB on Windows and I am receiving one of the following error messages:
Error 5 running command .\setup.exe
setup.exe is not a valid win32 application
This App can not run on your PC

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Sep 2020
Edited: MathWorks Support Team on 29 Jan 2020
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). ARM 64 bit processors are currently not supported.
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.
Windows Permissions
This error can occur if the self-extractor file does not have sufficient permissions to run.
SOLUTION: Navigate to the folder self-extractor file and right-click on the file 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.
Titouan Gressier
Titouan Gressier on 13 Apr 2022
Hi, I tried the 3 solution given above but none of them is working, I'm trying to install Matlab 2018b on a windows10 computer.

Sign in to comment.

More Answers (6)

Maha George
Maha George on 21 Sep 2017

laura dayana ducuara hernandez
thank you

John Coutou
John Coutou on 19 Sep 2019
Hi, I tried all the sugestions above. still getting the error 5.
My computer is 32bit. Need help.. I have school assignment to get done...
  1 Comment
Colin Fraser
Colin Fraser on 25 Sep 2019
Make sure that the installer you are using is compatible with your operating systems. Any version R2016a and above will not work with a 32-bit machine.
If you are still experiencing this issue, please contact MathWorks support:
-Colin Fraser

Sign in to comment.

Chellammal Nallaperumal
Chellammal Nallaperumal on 4 Nov 2020

sakkaravarthi k
sakkaravarthi k on 24 Feb 2022

Michael Villano
Michael Villano on 14 Jul 2022
2022 - I had to run the install as Administrator and fixed this issue for me.


No tags entered yet.




Community Treasure Hunt

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

Start Hunting!