Mark
Mark

Reputation: 314

Check if Browser is Exist in Client Machine

I'm using C# as a programming platform.

Can anyone help me on how can I populate all existing browser in the client machine. And I want also to validate first if the browser (firefox.exe) is existing in the client machine before calling the process of

System.Diagnostics.Process.Start("firefox.exe", "http://stackoverflow.com");

Upvotes: 0

Views: 269

Answers (2)

talha2k
talha2k

Reputation: 25650

I faced same situation sometimes ago and the answer what I found after alot of R&D was: It's not possible.

Upvotes: 0

M.Babcock
M.Babcock

Reputation: 18965

You'll need to inspect the Uninstall registry keys to determine if specific programs are available. Things to beware of:

  1. Different versions of the same browser may populate different uninstall keys (not recommended but it happens)
  2. I don't believe internet explorer has a registry key in all situations but if you're running on Windows you should be pretty safe here.

Upvotes: 1

Related Questions