I dont know the exact reason why, but 2 days ago texworks in my pc (windows 8) stopped working. Everytime I wish to start the program I receive the following message:
Best Answer
So, I chose an easy way to solve the problem. I uninstalled texworks as well as MiKTex and installed them again. Now, it works.
Step 1: Remove the miktex-texworks via "MiKTeX Package Manager" remove "miktex-texworks-bin-2.9" using Administrator privileges since it's not always up to date with latest release.
Step 2: In Windows, sometimes it does not completely remove the installation folder and file associations (dependent on software uninstaller), henceforth ccleaner. If necessary use registry cleaner
Step 3: Download and Install the Stable TeXworks channel for Windows , Go with Defaults for TeXworks Stable installation from channel. TeXworks stable should integrate well with MiKTeX (at least that was my past experience on Windows) and also keep miktex up to date
Step 4: Finally, make sure the miktex bin path set in Windows Path. Usually path in Windows is set by miktex and texworks during their installation unless something bad happens. CD to DESKTOP and run the test pdflatex sample2e at command line prompt, it would work from any where if miktex path was set properly. Check this by typing at command line pdflatex sample2e to get a sample2e.pdf. Here is a link for how to set executable path in Windows.
Qt, in this case, is the Qt library used by MikTeX (https://www.qt.io).
I can't reproduce your Windows 7 error, however, I know how to fix the Windows 8 one.
You can fix this error by copying the file qwindows.dll from <install folder>/miktex/bin/platforms/ to <your user home>/AppData/Roaming/MikTex/<version number>/miktex/bin/platforms/.
Best Answer
So, I chose an easy way to solve the problem. I uninstalled texworks as well as MiKTex and installed them again. Now, it works.