Finding a MikTeX installation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Finding a MikTeX installation

Tim Hoffmann
What is the best way to programatically find out if MikTeX is insalled
and if it is, where it's installed?

Thanks,
Tim

------------------------------------------------------------------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
Reply | Threaded
Open this post in threaded view
|

Re: Finding a MikTeX installation

David Allsopp
Tim Hoffmann wrote:
> 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


------------------------------------------------------------------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml