[Tex/LaTex] MSVCP140_CODECVT_IDS.dll was not found [MikTex 2.9]

miktexmiktex2.9

Opened MikTeX Console to perform an update to the installed modules, and an error occurred during the installation of one or more modules. This prompted the following message to keep appearing:

The code execution cannot proceed because MSVCP140_CODECVT_IDS.dll was
not found. Reinstalling the program may fix this problem.

MikTeX Console cannot be opened without the error reappearing. Running the default uninstaller for MikTeX triggers the same error message (pointing to a corrupted MikTeX installation).

Any suggestions to solve this problem?

Best Answer

The developer outlined how to install the missing dll in the corresponding Github issue:

  • Download the latest Visual C++ redistributable package from here. (Depending on your processor, that is the file vc_redist.x64.exe (64 bit processor), vc_redist.arm64.exe (64 bit ARM processor) or vc_redist.x86.exe (32 bit processor).
  • Run initexmf --mklinks --verbose --force in the command line (cmd or PowerShell). You can open PowerShell by right-clicking on the Windows button and selecting "Windows PowerShell (Admin)".