When I perform
XeLaTeX I get error
'mgs.exe' is not recognized as an internal or external command, operable program or batch file.
The solution for this is to add
...\miktexport\miktex\bin to the
PATH variable, because
mgs.exe exist in this folder.
I did this and now I have no problems to compile my document via command line.
However I would like to call
TexMaker shortcut but in this case I still get that mgs is not recognized. I guess that this is because portable miktex has its own
PATH variable, which is different from system
So I still cannot call XeLaTeX from portable TexMaker, since mgs.exe is still not recognized. In TeXMaker configuration I have the following command for XeLaTeX
"../miktexport/miktex/bin/xelatex.exe" -synctex=1 -interaction=nonstopmode %.tex