Why does installer fail on Windows with the error: "Installer error: exception calling main"?

116 次查看(过去 30 天)
When launching the installer on Windows, the following error occurs:
Installer error
exception calling main
The installation then fails
The installer may also show this error ERROR: "There is an invalid character (!) in Your temp directory. Please remove the invalid character from your TEMP (or TMP) environment variable and run the installer again"

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2019-5-16
This error can occur if:
  • The installation files are corrupt or incomplete.
  • The installation files were downloaded into a folder that contains other files (i.e. not downloaded into a separate folder).
  • You are trying to install in a folder where a different MATLAB version is already installed.
  • There are one or more non-ASCII characters (e.g. an exclamation point) in the environment variables TEMP and/or TMP
  • There are one or more non-ASCII characters (e.g. an exclamation point) in your username.
To resolve this issue:
  • Obtain new installation files, and then run the installer again.
  • Move the installation files into a separate folder (e.g. C:\matlab_temp), and then run the installer again.
  • Verify that you are installing in a folder that does not contain a different MATLAB version.
  • Verify that there are no non-ASCII characters in the environment variables TEMP and/or TMP.
  • Verify that there are no non-ASCII characters in your username.
If you are running the installer from a CD or DVD, please see the following support article:
Why do I receive an "Unexpected/Unknown Exception" error when installing MATLAB from CD/DVD media?
If you are still unable to start the installer, please contact MathWorks Support:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by