2 # /etc/profile.d/lily-miktex.sh -- Check for MiKTeX
5 # Educated guess in case we have no regtool
6 a="//c/Program Files/MiKTeX"
9 reg="$(regtool -q get 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\')"
10 b="$(cygpath -u ""$reg"")"
12 # Where we installed it
13 c="/usr/windows/MiKTeX"
15 for i in "$a" "$b" "$c"; do
21 PATH="$texmf/miktex/bin:$PATH"