I tried to install MikTex 2.9 on windows 8.1, but the operation failed with the following error:

MikTex setup wizard

The operation failed for some reason

Details: C:\Program Files (x86)\MikTex2.9\miktex/bin\initexmf.exe

Does anyone know how to fix this please ??

  • Welcome to TeX.SX! Maybe you can try TeX Live, instead.
    – egreg
    Nov 30, 2015 at 20:36
  • @egreg problem solved thnx
    – amira14
    Nov 30, 2015 at 21:23

1 Answer 1


Try this,

  1. Right click on My PC/My Computer and select properties. (Should lead to Control Panel\All Control Panel Items\System)

  2. Select "advanced system settings"

  3. Under the advanced tab click "Environment variables"

  4. Find PATHEXE in the user AND system variables. If it's not there, insert .EXE into the lists of extensions. Make sure C:\WINDOWS\System32 is in both of the PATH lists too.

  5. Restart your computer.


  • I tried that and it's working now .. thank you !!
    – amira14
    Nov 30, 2015 at 21:21
  • kindly click on the answered (green tick) to help others ! Dec 2, 2015 at 9:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .