# Where are the MATLAB Installation and Activation log files located?

983 views (last 30 days)
MathWorks Support Team on 10 Nov 2011
Edited: carlos manitio on 4 Nov 2021
I would like to know where the MATLAB Installation and Activation log files are located to troubleshoot potential errors with MATLAB.

MathWorks Support Team on 12 May 2021
Edited: MathWorks Support Team on 12 May 2021
During the installation and activation of MATLAB or other MathWorks Products, the MathWorks Installer and Activation Client create a log file that may be used to obtain information on the installation and activation processes.
The installation log file name is called "mathworks_%username%.log," and the activation log file is  "aws_%username%.log". Where %username% is the username of the user that ran the installer or activation client. Please see the instructions below to locate the log file depending on your operating system.
Windows
The log files will be located in the AppData\Local\Temp directory under the user account who ran the installer. The full path, as an example, is:
​You can use the steps below as a shortcut to get to these files:
1. Hold the "Windows" key and press the "r" key
Linux:
The log files will be located at the following location:
Mac OS X:
Follow these steps to retrieve the installer log file on a Mac:
2. Open a Terminal window (you can use Spotlight Search to find Terminal)
3. Copy and paste the following command, and press enter to run it in Terminal. Do not edit the command, run it exactly how it appears below:
cp $TMPDIR/mathworks_$USER.log ~/Desktop
cp $TMPDIR/aws_$USER.log ~/Desktop
This will create a copy of the needed log file on the desktop. If the command fails, this means the installer log file is not being created. This could indicate that the installer is not starting at all, and is thus not able to write the log file. If that is the case, additional information may be able to be obtained from the Console:
Applications - Utilities - Console (or use Spotlight Search to find the Console application)
Use the 'Clear display' button to clear out previous console messages. Then try running the installer again and see what is recorded in the console. You can save this information from console. This output may be helpful in addition to the installer log file.
Forcing the creation of the log file in a specific location for all operating systems:
If the installer is not creating a log file, then you may need to create your own. You can run the installer in command prompt or terminal with a flag to force a log file to be created. You could use a command like the following to do this:
Windows:
/full/path/to/setup.exe -outputfile "C:\path\to\logfile.log"
Linux/Mac:
./install -outputfile /path/to/logfile.log
Note: You can drag the installer into command prompt or terminal and the path of the installer will automatically populate for you. When defining where the log file will go, make sure it is a directory that you have write permissions. You may need to run command prompt as administrator (Windows) or the installer as sudo (Linux/Mac) in order to do this.
ck shen on 25 Apr 2018
You are right. Thanks a lot.

Ali Awais Farhat on 18 May 2017
I was using the student version and the MATLAB was activated on two machines. I deactivated one and tried installing again. And it worked.
##### 2 CommentsShowHide 1 older comment
Walter Roberson on 5 Jan 2018
Student license can only be activated on one machine at a time, and there is a limit of about 4 times per year that they can be switched between machines. If you need to regularly run a student license on more than one machine then your options are:
1. use MATLAB Online instead; or
3. activate on only one machine that you own, and when you are away from it, use a program such as Go To My Pc, or Teamviewer, to connect to the one machine remotely; or
4. if you are at a university that is providing licenses to students under the Total Academic Headcount (TAH) license, then those licenses are considered Academic licenses and are authorized to be activated on two machines at the same time

MDSAIF ALAM on 18 Nov 2017
I'm using a free trial but don't insrall why?
Walter Roberson on 18 Nov 2017

aprobar

Shoumei on 27 May 2019
It's easy to open temp directory with folliwing command.
winopen(tempdir)
##### 2 CommentsShowHide 1 older comment
Colin Fraser on 9 Sep 2020
Use the instructions above and send us a log file. We can assist you further with this information.
-Colin Fraser

muhammad muar on 31 May 2019
thanks
##### 2 CommentsShowHide 1 older comment
Walter Roberson on 7 Sep 2020
If you purchased MATLAB yourself, then Mathworks would have sent you your license number or activation key, probably through email.
If you are using a license provided by a university or company, they will have to provide the license number or activation key to you.

Estoy intentando instalar pero me aparece un problema que dice error de conexion, sin embargo ya desabilite el antivirus y revise mi Proxy. aun así no me ha sido posible instalar el programa. Gracias
Colin Fraser on 16 Apr 2020
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

Carlos David Albarracin on 29 May 2020
Frank TALA on 29 Jan 2021
I had the same error. I resolved it by launching the .exe from a usb drive. Make sure to move all the requirefiles on the usb drive

Ralph Wilbanks on 14 Jan 2021
?
##### 2 CommentsShowHide 1 older comment
Walter Roberson on 14 Jan 2021
Can you explain more?

sania javed on 17 Mar 2021
installer files are located in D drive. i got the error message "application could not connect to the mathworks"

Bekzod Maxmarasulov on 19 Mar 2021
Hello can you say my activation key please
Rajesh Kontham on 9 Apr 2021
Sorry. MATLAB license if quite costly. Can't share.

Rani Asna on 10 Jun 2021
Rani@1999
Rajesh Kontham on 10 Jun 2021
?? Were you interested in asking some time?

Anteneh Kasa on 1 Oct 2021
i want to applied the Matlab at the university for easily access informations to work
Walter Roberson on 2 Oct 2021
The volunteers who answer questions here are not able to issue licenses. You will need to purchase a licenses from Mathworks (or a distributor), or arrange a license through your university.

I'm Engineering Student , I Need To Vefiry This Account .
Walter Roberson on 2 Oct 2021
If you purchased MATLAB yourself, then Mathworks would have sent you your license number or activation key, probably through email. In this case contact Mathworks Support for assistance.
If you are using a license provided by a university or company, they will have to provide the license number or activation key to you.

Anteneh Kasa on 3 Oct 2021
On my android phone
Walter Roberson on 3 Oct 2021
MATLAB does not run on Android

Rad Sommer on 12 Oct 2021

carlos manitio on 4 Nov 2021
Edited: carlos manitio on 4 Nov 2021
tuve problemas para poder instalar el programa devido a problemas de conexion a internet pero intente acerlos de bueno y ya no me deja volver a internarlo me salio un codigo de error ..

MathWorks Support

### Tags

No tags entered yet.

### Community Treasure Hunt

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

Start Hunting!