I recently updated TeX Live to the following version
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=latex)
restricted \write18 enabled.
and cannot compile any file anymore, it fails with an error
Use of uninitialized value $ver in scalar chomp at G:/texlive/2022/tlpkg/TeXLive/TLWinGoo.pm line 196. Use of uninitialized value $ver in substitution (s///) at G:/texlive/2022/tlpkg/TeXLive/TLWinGoo.pm line 197. Use of uninitialized value $ver in substitution (s///) at G:/texlive/2022/tlpkg/TeXLive/TLWinGoo.pm line 197.
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order): fmtutil: g:/texlive/2022/texmf-dist/web2c/fmtutil.cnf fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes: fmtutil: c:/users/np/.texlive2022/texmf-config/web2c/fmtutil.cnf fmtutil [INFO]: writing formats under c:/users/np/.texlive2022/texmf-var/web2c fmtutil [INFO]: --- remaking xelatex with xetex
Can't spawn "cmd.exe": No such file or directory at g:\texlive\2022\texmf-dist\scripts\texlive\fmtutil.pl line 718. fmtutil [WARNING]: inifile xelatex.ini for xelatex/xetex not found. fmtutil [INFO]: disabled formats: 5 fmtutil [INFO]: not selected formats: 55 fmtutil [INFO]: failed to build: 1 (xetex/xelatex) fmtutil [INFO]: total formats: 61 fmtutil [INFO]: exiting with status 1
G:\texlive\2022\bin\win32\runscript.tlu:915: command failed with exit code 1: perl.exe g:\texlive\2022\texmf-dist\scripts\texlive\fmtutil.pl --user --byfmt xelatex
Running the command G:\texlive\2022\bin\win32\fmtutil-user.exe
kpathsea: Running mktexfmt xelatex.fmt The command name is G:\texlive\2022\bin\win32\mktexfmt
Process exited with error(s)
I reinstall texlive many times and it doesn't work. after Installation this message is displayed:
running a simple xelatex file or latex file from cmd concluded by:
please help me.
sfc /scannow && dism /online /cleanup-image /restorehealth && sfc /scannow
in an administrator command prompt and see if that fixes anything.