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 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.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in BROWSER
- (in promise) TypeError: NetworkError when attempting to fetch resource
- How could i add a bookmark and tabs function in PySide6?
- Difficulty Accessing HTTP URLs/IP Addresses Due to Browser Redirecting to HTTPS: Seeking Solutions
- Can be their an extension to save pages in as offline in the browser itself?
- Connecting puppeteer to an existing Brave Browser instance using
- How can I modify javascript native fetch function from an extension?
- Update your browser to use...in android webview application
- Why does throwing an error in any browser developer console not get caught by window.addEventListener('error')?
- The javascript and css files cached by chrome do not belong to the same version
- Unlike chrome Unable to create multiple instance of sidepanel while creating extension for edge browser
- Cannot import a class from a WebPacked javascript file
- How do I keep the same time input style in both firefox and chrome
- Use GUI application on Github Codespace
- get cpu / gpu capabilities from client in react / typescript?
- How to close a browser context after multiple test is written in same file
Related Questions in REGISTRY
- Set req query output to a variable
- Windows 2019 Registry Values Keep Reverting (Windows Defender)
- Cargo patch to redirect registry to local path without having to call cargo login
- OpenSubKey() in Windows 11
- How to read Virtualized Registry values from MSIX packaged Electron App
- podman ignoring private registry tls verification
- Explorer.exe keep writes registry entry silently upon right click on certain file types
- Windows registry dump in InstallShield prerequisite
- Windows batch file REG ADD not working sometimes, but not all the time
- Remove-ItemProperty does not seem to work with -LiteralPath
- How do I write a hexadecimal value to the registry?
- Powershell to change Registry Key
- How can I have an application associate with a file type?
- How to store text variable to file and retrieve it in PowerShell?
- Reading / Enumerating registry path fails "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Country/region List"
Related Questions in DEFAULTS
- Defaults of the turtle in Python turtle module
- Mako: render with predefined/default items in Context?
- ExtJS: Setting defaults to panel items for nested objects
- vue select component - set defaults props?
- over ride default background
- Loading csv values from a file into web form as DEFAULTS using PHP
- How can I set defaults for Moose attributes?
- Puppet - set defaults in manifest if not present in hiera when iterating over hash
- Editing system defaults from Swift
- Printing out MacOS Mail settings
- How to merge default values into subarrays of a new multidimensional array?
- hot to safe "isEnable" state of button in user defaults?
- shell script (macOS): print escaped Unicode character from a plist string
- How to get names of all SQL Server Defaults and Rules
- How to read "Security & Privacy" settings using command line or programatically
Related Questions in DEFAULT-BROWSER
- How to open the default browser from JavaFX and hand the HTML document to show as a parameter?
- Getting the default browser runnning on a windows system
- Windows error while running powershell script to set chrome as default browser
- associated-domains has a conflict with com.apple.developer.web-browser setting
- Setting default browser with powershell without 'How do you want to open this?' prompts
- C# application Microsoft Visual Studio update 17.5.2 weird affect - opening in blank browser debugging not original
- JavaScript won't run on Internet Explorer within web browser control
- Can we check Current Default browser in iOS programatically?
- VS Code default browser
- Set Notepad as default browser on Win10
- Activity Monitor Log: Default Browser
- Unable to set Chrome as default web browser in OS X
- Bash script to set Chrome as default for projects only?
- How do I set the default browser for xdg-open on Centos 7 if xdg-settings has no desktop environment
- How to add url to email body to open in Google Chrome by default
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?
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)
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.