Well, I am installing the rest of the 2000+ packages right now. But this has happened to me last night as well. After installing all the packages and refreshing the database and going into texwork's preferences in the top box, there are multiple pathways for tex and related programs namely: <br>
<ol><li>C:\Program Files\MikTeX 2.9\miktex\bin\x64</li><li>C:/Program Files/MikTeX 2.9/miktex/bin/x64</li><li>C:\Program Files\MikTeX 2.9\miktex\bin\x64</li></ol><p>which one do I select and type -shell-escape command ?<br>
</p>