Friday 12 October 2018

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


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.



Answer



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.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...