How to find out where Internet Explorer is?

  • Thread starter Thread starter Morten Wennevik
  • Start date Start date
M

Morten Wennevik

I use

System.Diagnostics.Process.Start("IExplore", url);

to start Internet Explorer when clicking a link label.
However, this seems to work only for me, and not for two other people who
both get File not found errors. Both have installed Internet Explorer.

How can I find out the directory of Internet Explorer so I can pass the
full filepath in the Start method?

Same goes for Opera and Netscape, but the principle should be the same.
 
Ah, thanks.

If I pass the url without any application tied to it, windows opens it
with the default browser, so I don't need to know what is the default.
However, HKEY_CLASSES_ROOT\Applications does not contain all
applications.
I found HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App
Paths had the information I needed.
 
If you look for the key
{25336920-03f9-11cf-8fd0-00aa00686f13}
you'll find the (default) browser associated with HTML documents.
Otherwise you can find in HKEY_CLASSES_ROOT\Applications\iexplore.exe the
path to internet explorer, and, of course, for other browsers
 
Back
Top