[Tex/LaTex] Trouble installing MiKTeX 2.9 on Windows 10

installingmiktexwindows

I have PC with fresh install of Windows 10. I am now trying to install the version of MiKTeX 2.9, but am running into same installation problem. The install starts fine (Net install, basic install, full install, 32-bit, 64-bit, or ProTeXt), but stops at the same error each time – see below. Anyone have ideas how to fix this? Much appreciated.

An error occurred:
source file: Libraries\MiKTeX\Core\File\win\winFile.cpp
source line: 418
message: Permission denied: path="C:\Program Files\MiKTeX 2.9\miktex/bin/x64/biber.exe"
info: path="C:\Program Files\MiKTeX 2.9\miktex/bin/x64/biber.exe"

Best Answer

For some reason the file locations like:

C:\Users\YourName\AppData\Local\MiKTeX\.....

was getting set to "read only" automatically during installation (in my system).

I did the following and it worked.

  1. Temporarily disable the Antivirus (McAfee)
  2. Manually open the folder C:\Users\YourName\AppData\Local\MiKTeX\... Then right click, go to properties and unset the Attribute Read Only. When windows asks, tell it to do it recursively for all the subfolders.

After that the installation runs smoothly and I was able to compile the TeX files (I was using Winedt as the editor).

I am not sure if disabling the antivirus was essential though.