Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows RegKey - Default Browser Application Path

What RegKey can you get the default browser application's path from?

Best way to get to it from C#/.NET?

like image 576
BuddyJoe Avatar asked May 01 '09 20:05

BuddyJoe


1 Answers

Here's the key you want:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command

And here's a quick registry tutorial for C#, if you need it.

Edit:

For per-user settings, use this key:

HKEY_CLASSES_ROOT\http\shell\open\command

(HKCR has both machine and user settings, user takes priority).

Note that this might not work on Vista. For more info, see here.

like image 124
Jon B Avatar answered Sep 27 '22 19:09

Jon B