Following the instruction on MiKTex website(see https://miktex.org/howto/portable-edition), I installed the latest portable version of MiKTex(basic-miktex-21.2-x64.exe) and it works well. Then I move the installed MiKTex folder into another place which cause everything changed, and the MiKtex can not work any more. This means it is not portable. So, in my case, how to make the MiKTex portable that can be placed everywhere. Thanks.

PS: At the end of the potable version installation, a fault warning message is given(refer to the attachted figure). I wonder if it is because my operating system is Windows 7. Or does that mean the latest MiKTex dosen't support win7?

enter image description here

  • 1
    The idea of a "portable" distribution is that you have it on a USB stick which you can carry around, not that you can move the folder here and there and hope that it works.
    – campa
    Jun 3, 2021 at 14:30
  • Is there a way to make the MiKtex work after movingthe folder into a new place? It seems that "miktex-portable-2.9.6942" can do it, whereas the latest version can not.
    – lyl
    Jun 3, 2021 at 14:36
  • As for USB stick, its disk letter may vary with different computer. In this case how can it be portable?
    – lyl
    Jun 3, 2021 at 14:54

2 Answers 2


I have tested portable miktex 21.6 on my Windows 7. There was no problem with it. When you have changed the miktex folder, you need to run miktex-portable.cmd in the folder first. If you are using other TeX editors other than TeXworks, maybe you need to put a dos batch file with the following lines into miktex folder and run it:

@echo off
cd /d %~dp0
echo Loading...
texmfs\install\miktex\bin\x64\initexmf.exe --mkmaps
start "" path\to\you\editor.exe

it exists on the Miktex site. I used it a few years ago. The different packages must be correctly installed.



  • I had been following the instruction you mention in the link, and a fault message is given at the end of installation(please see the attached figure) . Why? And does that mean the latest version does not support Windows 7?
    – lyl
    Jun 3, 2021 at 15:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .