I'm trying to let the user choose the browser my application uses to launch urls. Currently it uses the default browser, but some people want to specify a different browser.
I'd like to show only installed browsers in the list, and I'm launching them like this:
Process.Start("chrome", url);
The problem is, if Chrome isn't installed (and in the path), it'll fail.
How can I check whether this call will fail, without calling it (so I can pre-filter my list, and remove chrome if it's not going to work)?