Discussion:
[MiKTeX] Finding a MikTeX installation
Tim Hoffmann
2016-11-27 16:27:38 UTC
Permalink
What is the best way to programatically find out if MikTeX is insalled
and if it is, where it's installed?

Thanks,
Tim
David Allsopp
2016-11-27 17:25:19 UTC
Permalink
What is the best way to programatically find out if MikTeX is insalled and
if it is, where it's installed?
Possibly the most reliable way is to search for miktex-tex.exe in the PATH variable and see what directory that comes back with? If you rule out MiKTeX Portable completely, you could analyse HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MiKTeX 2.9 (actually, you probably also need to look in the HKEY_CURRENT_USER version too, for users who have installed just for themselves).

HTH,


David

Loading...