2

i need to find my default browser so first i try to figure it through regedit (registy keys) https://stackoverflow.com/questions/968449/how-do-i-change-default-browser-using-c-sharp-or-batch-file as mentioned i used reg key{HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command} then i manual change my web browser from internet explore to chrome. but after i refresh values does not change in reg key. why this happen??? how can i detect my default browser in reg key?

EDIT :

always

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

value is

"C:\Program Files (x86)\Internet Explorer\iexplore.exe" -nohome 

(even i change to chrome to default browser this does not change)

8
  • It sounds you're like you're trying to programmatically change registry values, so maybe this belong on StackOverflow with notes on what language/tools you're using.
    – ckhan
    Commented Jul 6, 2012 at 8:30
  • @ckhan-yah i try to do it.. but before that i check it in reg edit. if i change browsers manually (explorer to chrome) then according to that does regkey change it values or not???? but in here it does not change in windows 7. i want to know why this happen & how can i see the changes.
    – DevT
    Commented Jul 6, 2012 at 8:35
  • See newoldthing.wordpress.com/2007/03/23/…
    – ckhan
    Commented Jul 6, 2012 at 8:43
  • @ckhan i read that one. but it does not mention about windows 7. :(
    – DevT
    Commented Jul 6, 2012 at 9:16
  • Which Programming language are you using with what function? Commented Jul 6, 2012 at 9:56

1 Answer 1

11

You can look under this registry key and find out which browser is being used by the current user:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid

It is a REG_SZ value and will be one of these for the major three browsers currently available:

  • FirefoxURL
  • ChromeHTML
  • IE.HTTP
2
  • great... this is nice.
    – gumuruh
    Commented Feb 18, 2019 at 10:09
  • Chrome beta/dev/canary: ChromeBHTML/ChromeDHTML/ChromeSSHTM. Edgium stable/beta/dev/canary: MSEdgeHTM/MSEdgeBHTML/MSEdgeDHTML/???.
    – Paul
    Commented Jun 15, 2020 at 13:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .