How to change the default browser in Windows?

1.3k views Asked by At

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.

2

There are 2 answers

2
JuanK On

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.

0
Mattias Lindberg On

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.