TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from superuser.com May 17 '12 at 1:56

This question came from our site for computer enthusiasts and power users.

up vote 11 down vote accepted

Maybe it’s too late for the OP, but I want to advise the following procedure:

  1. Make a copy of C:\Program Files\MiKTeX 2.9 let’s say in C:\tempdir.

  2. Uninstall your MiKTeX installation.

  3. Do an installation of the basic MiKTeX version and choose the path D:\Program Files\MiKTeX 2.9.

  4. 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 --admin switch. More command line options you can find e.g. in How do I update my TeX distribution – MiKTeX from the Command line.

  5. As last step you can delete C:\tempdir and possible remnants of C:\Program Files\MiKTeX 2.9.

share|improve this answer

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.

share|improve this answer
I would've liked a more MiKTeX-specific answer, but thanks. – Jack Tanner May 10 '12 at 5:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.