Am Tue, 26 Jun 2018 14:35:12 +0200 schrieb Michal Hoftich: > Thanks, that sounds nice. Bad news is that I've found that Miktex > doesn't support any of these variables, so a different method to find > the root directory must be used.
I didn't follow (or understand) which path you need to find but kpsewhich -expand-var=$TEXMFDIST gives the main miktex root on my system. If something else is missing I suggest to ask for it on the miktex github tracker. -- Ulrike Fischer https://www.troubleshooting-tex.de/