简体   繁体   中英

How to change the default browser in Windows?

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM