I download the latest miktex installed it. and xetex luatex etc was working great. but after updating engines(pdflatex, xelatex, lualatex) when I use texworks to compile my latex the gives error. also when I start latex.exe in miktex folder it gives same error. the error is:
the procedure entry point
?GetWrite18Mode@TeXApp@TeXAndFriends@MiKTeX@@QEBA?AW4S
hellCommandMode@Core@3@XZ could not be located in dynamic link library
c:\users\hossein\AppData\Roaming\MiKTeX\2.9\bin\x64\pdflatex.exe