Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i need to find my default browser so first i try to figure it through regedit (registy keys) http://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)

share|improve this question
    
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 Jul 6 '12 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 Jul 6 '12 at 8:35
    
See newoldthing.wordpress.com/2007/03/23/… –  ckhan Jul 6 '12 at 8:43
    
@ckhan i read that one. but it does not mention about windows 7. :( –  DevT Jul 6 '12 at 9:16
    
Which Programming language are you using with what function? –  Akshat Mittal Jul 6 '12 at 9:56
show 3 more comments

2 Answers

up vote 2 down vote accepted

This fourm has your answer .

http://newoldthing.wordpress.com/2007/03/23/how-does-your-browsers-know-that-its-not-the-default-browser/

Also you might won to check this to. http://stackoverflow.com/questions/4222367/windows-registry-key-for-check-whether-ie-is-the-default-browser

share|improve this answer
    
"Prior to Windows Vista, this information is stored in the registry under HKEY_CLASSES_ROOT hive, the usual place where all shell associations are kept." - it does not mentioned in what about in windows 7. :( –  DevT Jul 6 '12 at 10:54
    
Windows 7 and Vista are same it should make any different. –  Lalajee Jul 6 '12 at 11:04
    
@LLalajee - i edited my question. i checked out those links but i cant find any solution yet –  DevT Jul 6 '12 at 11:14
    
@Til86 - I follow the instructions on those websites and it worked for me. Try harder. –  Ramhound Jul 6 '12 at 11:31
    
@Lalajee - thanx for the support. u r correct. can get value “HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\ Associations\UrlAssociations[ftp|http|https]“ as mentioned in article 1 –  DevT Jul 9 '12 at 4:17
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.