I'm trying to make an application that the user can pick to be their default browser and will run when a HTTPS link is clicked. I then want the user to pick which browser they want to open the link with and then open the link in the browser they select. So far I have been able to get everything apart from the things in the first sentence working. I'm not sure how to get my app to be available to be picked as the default browser and then recieve a HTTPS link.
Asked
Active
Viewed 38 times
-2
-
You have to [manipulate the windows registry](https://stackoverflow.com/questions/8816178/modifying-the-registry-key-value) and for changing the defaults check out [Change Default Apps and File Association](https://www.winhelponline.com/blog/set-default-browser-file-associations-command-line-windows-10/) – Mohi May 23 '22 at 19:23
-
I'm not sure if I'm misunderstanding but the second website you sent mentions that windows prevents programmes from changing themselves into a default browser through registry. Also, even if my programme were to change the registry and become the default browser, how would I be able to access the link that was clicked on? – Meyer May 23 '22 at 19:38
-
1Correct. Operating systems generally don't allow programs to change such settings to prevent malware from changing them without the user's consent. I suggest you rethink your approach to whatever problem you are solving. – NightOwl888 May 23 '22 at 20:09
-
I'm not trying to make my programme make itself the default browser, I'm trying to give the user the option to pick it as a default browser in settings like they would chrome or any other browser. Is there a way to do this? – Meyer May 23 '22 at 20:19