On my Windows 7, 64-bit machine MiKTeX lives in
C:\Program Files\MiKTeX 2.9. I'd like to move it to
D:\Program Files\MiKTeX 2.9. Is there a mostly painless way to do so, or should I just reinstall?
Maybe it’s too late for the OP, but I want to advise the following procedure:
Make a copy of
C:\Program Files\MiKTeX 2.9let’s say in
Uninstall your MiKTeX installation.
Do an installation of the basic MiKTeX version and choose the path
D:\Program Files\MiKTeX 2.9.
And now the clever trick: On the Command Prompt execute the following
mpm --admin --repository="C:\tempdir" --import-all
If you’ve chosen on installation, that you will use it as the only user, you must leave out the
--adminswitch. More command line options you can find e.g. in How do I update my TeX distribution – MiKTeX from the Command line.
As last step you can delete
C:\tempdirand possible remnants of
C:\Program Files\MiKTeX 2.9.
Uninstall and reinstall is the best way to move pretty much any installation. There is a lot going on in an installation. The installer is written specifically to (hopefully) get it all done right. Moving it by hand is sometimes possible, but in general it is not worth the risk of missing something subtle.