LaTeX forum ⇒ GeneralIniTexmf causes Windows API Error

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 1
Joined: Tue Jan 24, 2012 11:32 pm

IniTexmf causes Windows API Error

Postby anacostache » Wed Jan 25, 2012 12:24 am


I have installed LaTeX but can't get it to work. This probably really silly, but I'm not very good at this. It is giving me the following error message:

  1. initexmf.exe: Windows API error 5: Access is denied.
  3. initexmf.exe: Data: \.\Documents and Settings
  4. texify.exe: The operation failed for some reason.
  5. texify.exe: Data: C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\initexmf.exe

what do I need to do?


User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Jan 25, 2012 12:43 am


welcome to the board!

Perhaps install with administrative rights. Or try TeX Live instead.

Site admin

Stefan Springer
Posts: 1
Joined: Wed Aug 14, 2013 12:10 pm

Postby Stefan Springer » Wed Aug 14, 2013 12:14 pm

The user has to have admin rights.


The problem is that in Windows-MiKTeX the following code:

(attributes & FILE_ATTRIBUTE_READONLY) != 0

(search for it in *.cpp files) does not function correctly (e.g. install MikTeX to the program folder and then try to run it without admin rights). After replacing the above code with:


the compiled MiKTeK does run without admin rights. Of course, there should be a better solution, replacing the code with something that supplies the correct answer to the read-only question.

Return to “General”

Who is online

Users browsing this forum: No registered users and 12 guests