[Tex/LaTex] failure installing MikTex 2.9

installingmiktex

I have a similar failure installing MikTex 2.9., with or without admin right,
it is almost the same failure and output log using:

  • basic-miktex-2.9.6219.exe
  • basic-miktex-2.9.6069-x64
  • or basic-miktex-2.9.6219-x64

With the first two ones I have this log

An error occurred:
 source file: Libraries\MiKTeX\Core\File\win\winFile.cpp
 source line: 488
 message: Permission denied: path="C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\fonts/enc/dvips/base/6w.enc"
 info: path="C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\fonts/enc/dvips/base/6w.enc

Trying to install it with admin rights I got the same error but in "C:\Program Files".

with the third one the log is this one:

An error occurred:
 source file: Libraries\MiKTeX\Core\File\win\winFile.cpp
 source line: 488
 message: Permission denied: path="C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\fonts/enc/dvips/lm/lm-cs.enc"
 info: path="C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\fonts/enc/dvips/lm/lm-cs.enc"

Assuming there is no problem with all installers and the difference between "/" and "\" I see in the path ("MiKTeX 2.9\fonts/enc") is harmful. What the origin of the failure could be and how could I work it around.

Best Answer

The problem is the antivirus that blocks the .enc files. I am not sure why did not block it the first time I installed MikTex, but eventually it did.

I thought it was some problem with MikTex so I tried to update it, it failed it, so I tried to install it again and it failed it also. While I was extracting the file for the portable installation I realized that all .enc file were blocked, the antivirus said "Block CryptolockerVirus" for all .enc files.

Would an exception work? I hope so

Related Question