I have created a simple browser in c# for a couple family members. I want to set it as the default browser either from an installer or from the program. I want to do the same thing as Chrome or Firefox does when it asks you if you want to set it as default. I can set up command line processing, all I need to know is how to how to set the default browser.
-
1Possible duplicate (see the answers): http://stackoverflow.com/questions/4222367/windows-registry-key-for-check-whether-ie-is-the-default-browser – Chuck Savage Oct 20 '12 at 16:27
-
1May be not exactly, OP requires programmatic approach. – Furqan Safdar Oct 20 '12 at 17:00
2 Answers
Perhaps http://www.windowsitpro.com/article/configuration/how-can-i-configure-the-default-internet-browser- has the information you want. So you can check these entries at startup and they are not what you want you can set them!
Having created your own browser I assume you are able to use the Microsoft.Win32.Registry and translate this to code on your own.

- 2,064
- 3
- 24
- 34
Yes, you can change it using registry entries as @Mattias told you. But it is a really bad idea , if you do that you are hurting user experience.
In a corporate environment, domain policies already have support to make this things.
You also can establish local (nor domain) policies using GPedit.msc. Change registry entries or use gpedit.msc , any way don't hurt UX even in your family this is awfull for affected people. Anybody must be free tho choose the browser they want, even a bad browser.

- 2,056
- 19
- 32
-
-
You also can stablish local policies using GPedit.msc. Change registry entries or use gpedit.msc , any way don't hurt UX even in your family this is awfull for affected people. Anybody must be free tho choose the browser they want, even a bad browser. – JuanK Oct 30 '12 at 22:36