How do I have no default web browser, so the system asks what browser to use when I click on a link?

12

8

I use Internet Explorer for some things and Chrome for others. I'd like to have a choice when I click on a link of which browser to open the link in. Is this possible in Windows? I am currently running Windows 8, although there should be similarities between versions.

To the best of my knowledge this isn't possible.

Andrew Vogel

Posted 2013-04-03T18:33:08.480

Reputation: 241

Disclaimer: I have not used Windows since Windows 3.11. However, this is how I expect it to work: First, write a batch or simple program that asks you if you want the URL passed to it opened in IE or Chrome. Then, in both IE and Chrome, set the default HTTP and HTTPS handler to be your little program you wrote. If (and this is a big if) you can set the default web page handler and the browsers will accept it, you will get what you want. – kainaw – 2013-04-03T18:36:03.457

If I could write the program I would :). If you know of any out there let me know, but I wasn't able to find one already made. I suppose I was hoping a way would exist in the system such as how Windows handles file extensions for unknown types. – None – 2013-04-03T18:40:44.967

Hi kainaw, I have discovered a solution. See below and thank you for your help. – None – 2013-04-03T19:44:12.473

Answers

12

I found the following as the simplest solution. Warning: Do not do this if you are not a local administrator.

Modify the following registry keys:

  • [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice]
  • [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice]

Change ProgId to be a nonsensical value.

Remove your local admin account from permissions on the UserChoice folder. (You will still retain admin privileges as long as you are in the administrator's group)

When clicking on a http/https link, Windows will look at that registry key to see what program to run. When it can't finds it, it brings up a list of all registered http handlers for you to choose from. Normally it would set whatever one you choose to that registry key, but it fails due to the permission being removed. It would work if it had elevated permissions, but that web browser selection screen does not have elevated permissions.

A hack, but it's working for me, and I believe it is safe.

Andrew Vogel

Posted 2013-04-03T18:33:08.480

Reputation: 241

1Seems working for Win10 – tm- – 2018-01-16T14:24:46.767

1Removing permissions causes Continious explorer refreshing/restarting. Icons on task bar blinks for ever. Very annoing – kyb – 2018-04-23T06:48:05.617

1I had to disable permission inheritance on the two UserChoice folders so that I could explicitly delete my local admin account from the ACL. So far, all is working well. If something breaks in the future, could I just reenable inheritance to "reset" the permissions? – Jacob Stamm – 2019-02-06T15:18:23.017

@JacobStamm yep - since you're the owner of it you'll be able to do that. – Andrew Vogel – 2019-03-25T03:21:21.727

Same thing as for @kyb now, icons blinking. Windows is trying to set Edge as deafult, if none is set. Any ideas to fix it? – tm- – 2019-05-29T14:47:30.807

Yes, use Choosy! But it works on Mac :) Works like a charm! – kyb – 2019-05-29T14:49:00.277

That is very similar to my suggestion. Instead of writing an application, you found a way to use the built-in Windows application. I'm happy that it works for you. – kainaw – 2013-04-05T00:23:33.940

Yep. I tried initially to have a batch program as you suggested to bring up a prompt and redirect for me, but it refused to launch it (maybe I had it recorded incorrectly in the registry, not sure). Thanks again. – Andrew Vogel – 2013-04-05T12:40:49.613

3

Codeplex (an open source site from Microsoft) has a tool for doing this: Browser chooser (previous website)

Hope

Posted 2013-04-03T18:33:08.480

Reputation: 31

Too bad there are no maintainers :-( – SandRock – 2019-09-02T14:20:06.430

Or has it moved here? https://www.browserchooser2.com/

– SandRock – 2019-09-02T14:25:42.833

0

I found that I did not have to change permissions for this to work. I got away with obfuscating just the http for the offending program. https links still work. I can open http shortcut URLs by sending my browser's executable (Pale Moon) to the right-click 'Send to' menu, and these URLs sent to it is a simple workaround.

Tom Martin

Posted 2013-04-03T18:33:08.480

Reputation: 1