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.
How to change the default browser in Windows?
1.3k Views Asked by msbg At
2
There are 2 best solutions below
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.
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in BROWSER
- Why does Angular send Http Request Method: Options before POST?
- Trick browser into resizing the viewport dimensions by 1px
- Why is it so hard to style <select> and <option> elements?
- Change writing language at browser
- Selenium stops running after click() function runs
- Are there any debugging tools for the Opera Mini mobile browser?
- place 1 label top, 1 input bottom and 2 buttons left
- Why clear cache does not work with all browsers?
- Opening Browser Instances from different Vendors
- Browser's not displaying images correctly
- Open a html document with php
- How to run a .jar inside browser?
- Why/how does the browser decide ☃.net goes to xn--n3h.net
- How do you invoke another app from a child browser
- Firefox and SSL pages - takes very long on certain sites
Related Questions in REGISTRY
- Disable all power options from the Start menu
- C# DWORD and QWORD - signed and unsigned madness
- Extracting specific registry key from REG QUERY based on search string
- Parameter "StrongAssemblyName" must be specified if the flag "gacinstall" is used
- How can we add custom logic while installing exe created by installshield
- How to migrate registry entries with PowerShell with Get-Item : Set-Item and ExportTo-CliXml
- Script that runs "reg add" as admin
- ICallFactory with 32-bit and 64-bit type libraries side by side
- VB write to Local Machine Registry
- Trouble creating DWORD in LocalMachine registry field with C# WinForms
- How elevate priviledge only to access windows registry
- How do I determine the size of a registry value's data using the Windows API?
- Registry aren't fully deleting when uninstalling
- Using Registry to install Excel AddIn
- Nant build issue: Failed to initialize the Microsoft .NET compact framework
Related Questions in DEFAULTS
- Printing out MacOS Mail settings
- Does Visual Studio have a setting for saving the swap panes when viewing xaml?
- Change sizing defaults for data types in SSIS
- R: Passing function arguments to override defaults of inner functions
- Rails: Accessing route segment defaults
- Setting Function Defaults R on a Project Specific Basis
- Apache Thrift: Assign default values to enclosed struct
- Why is git core.preloadindex default value false?
- How to configure defaults for a parameter with multiple values for a Maven plugin
- Rails RESTful Routes: override params[:id] or params[:model_id] defaults
- How to change the default version of python in a linux machine ?(not just symlink)
- setting pcregrep color default
- Html override settings
- How to specify a function as the default of a scriptblock parameter in a PowerShell function?
- How to change the default browser in Windows?
Related Questions in DEFAULT-BROWSER
- How to open HTML file with default browser and delete it after user viewed it?
- Bring browser to front that is started by ShellExec/Process.Start
- How do I redirect file:// URLs to a specific browser via Applescript?
- Which manifest tag makes my app available as default browser app?
- How to set program.exe as a default browser in Windows 10?
- Full screen mode doesn't take up full space in android default browser
- How to set the default browser to my application?
- How to change the default browser in Windows?
- How to control screen view on android default browser
- Unable to set Chrome as default web browser in OS X
- Can we check Current Default browser in iOS programatically?
- JavaScript won't run on Internet Explorer within web browser control
- Remotely Open Default WebBrowser and access its methods, properties and values
- get link and PID of process calling default web browser
- WPF WebBrowser - open links in default browser
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.