12

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?

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

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

14

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.

3

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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