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?

0
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.

1
  • 1
    Warning! If some packages are installed as admin and some as user, it could be necessary to join both directories before importing pacakges. It is worth taking a backup first.
    – faramir
    Feb 26 '21 at 11:42
2

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.

2
  • I would've liked a more MiKTeX-specific answer, but thanks. May 10 '12 at 5:51
  • I downvoted. It is just a general hearsay truism, or even opinion, non-specific to the question and software at hand. There are countless other places on the web, where this type of answers and advice are already provided, but this site is for more specific answers. Aug 25 '21 at 11:59

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.