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.
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:\n
- Hold the "Windows" key and press the "r" key
- In the run window type the following command:%temp%\mathworks_%username%.log OR %temp%\aws_%username%.log
The log files will be located at the following location:\n Mac OS X:
Follow these steps to retrieve the installer log file on a Mac:\n
- Log in as the user who ran the installer.
- Open a Terminal window (you can use Spotlight Search to find Terminal)
- 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.
All operating systems:
Forcing the creation of the log file in a specific location:
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:
/full/path/to/setup.exe -outputfile "C:\path\to\logfile.log"
./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.