A while ago I was struggling to obtain TeXworks working correctly with MikTeX 2.9.4521-x64 under Windows 7-x64; and after a marathon I managed to correctly match the appropriate extensions with the registry (it seemed all was going to be fine).
But, looking up on the main site of the editor, I found that a new version was released, and since I like to have programs with recent fixes I decided to apply for an even exchange; i.e. I wanted my TeXworks distribution simply and clearly replaced by the newest one inside the appropriate folder.
The comment of @karlkoeller is a valid help to get my first step done; but I have still some worries about installing a new version.
Where exactly has to be put in order to have the same folder structure as before?
Disclaimer: The below statements are based on personal deductions, so they may be lacking of accuracy/preciseness.
With a little explaining, I learnt that not one folder of TeXworks is placed inside my OS; so the main distribution of this program (installed using MikTeX setup.exe
), when removed, is called by the whatever-folders it may be stored in to be deleted (and the registry cleared).
End of deductions.
The main problem is that I do not know how this behaviour is like when I try to install a brand new/separated version of this program (I don't think that a reverse logic would apply). So what are the steps to follow?
Best Answer
I would suggest the following
Step 1: Remove the
miktex-texworks
via "MiKTeX Package Manager" remove "miktex-texworks-bin-2.9" usingAdministrator
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
andtexworks
during their installation unless something bad happens. CD to DESKTOP and run the testpdflatex sample2e
at command line prompt, it would work from any where if miktex path was set properly. Check this by typing at command linepdflatex sample2e
to get asample2e.pdf
. Here is a link for how to set executable path in Windows.