[Tex/LaTex] Error installing MiKTeX 2.9 on Windows

installingmiktexwindows

The basic MiKTeX 2.9 installation fails on Windows. So I edit the log file after a cleaning cession to eliminate dust from the first failing trial.

Here is a simplest log file after cleaning a lot of things (mainly due to the first fail to install MiKTeX):

2016-12-03 17:37:28,244+0100 INFO  initexmf - starting: MiKTeX Configuration Utility (MiKTeX 2.9.6100 64-bit)
2016-12-03 17:37:28,307+0100 INFO  initexmf - Registering root directories...
2016-12-03 17:37:28,540+0100 INFO  initexmf - starting: MiKTeX Configuration Utility (MiKTeX 2.9.6100 64-bit)
2016-12-03 17:37:28,610+0100 INFO  initexmf - Removing fndb (C:\ProgramData\MiKTeX\2.9)...
2016-12-03 17:37:29,956+0100 INFO  initexmf - starting: MiKTeX Configuration Utility (MiKTeX 2.9.6100 64-bit)
2016-12-03 17:37:30,032+0100 INFO  initexmf - Skipping user root directory (C:\Users\Jean-Claude\AppData\Roaming\MiKTeX\2.9)...
2016-12-03 17:37:30,033+0100 INFO  initexmf - Skipping user root directory (C:\Users\Jean-Claude\AppData\Local\MiKTeX\2.9)...
2016-12-03 17:37:30,033+0100 INFO  initexmf - Skipping user root directory ("C:\Program Files (x86)\Tex")...
2016-12-03 17:37:30,037+0100 INFO  initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2016-12-03 17:37:30,112+0100 INFO  initexmf - Creating fndb for common root directory ("C:\outils\MiKTeX 2.9")...
2016-12-03 17:37:38,698+0100 INFO  initexmf - starting: MiKTeX Configuration Utility (MiKTeX 2.9.6100 64-bit)
2016-12-03 17:37:38,939+0100 FATAL initexmf - A MiKTeX configuration file could not be loaded.
2016-12-03 17:37:38,939+0100 FATAL initexmf - Info: file="C:\Program Files (x86)\Tex\miktex/config\scripts.ini", line="147", error="the file has been tampered with"
2016-12-03 17:37:38,940+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\Cfg\Cfg.cpp
2016-12-03 17:37:38,940+0100 FATAL initexmf - Line: 1138

Any help?

Best Answer

Solved after a lot of steps and trial. So, my answer is just a list of ideas:

  • after each failing trial, remove all installed files
  • unactive your antivirus on the install directory
  • execute the installer as administrator
  • check if there is another tool which as something to do with latex and remove it from the path
  • avoid blank in the install path

and then, with some luck, you will install MiKTeX.