Last active
April 26, 2020 07:28
-
-
Save doozie-akshay/7027fb6aaa01ab91ebde0a8933b61f0a to your computer and use it in GitHub Desktop.
How to force open a link in IE Explorer?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Classes\ie] | |
"URL Protocol"="" | |
@="URL:IE Protocol" | |
[HKEY_CURRENT_USER\Software\Classes\ie\shell] | |
[HKEY_CURRENT_USER\Software\Classes\ie\shell\open][HKEY_CURRENT_USER\Software\Classes\ie\shell\open\command] | |
@="cmd /c set url=\"%1\" & call set url=%%url:ie:=%% & call start iexplore -nosessionmerging -noframemerging %%url%%" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What make this hard is security restrictions browser are not directly allowed to run EXE unless explicit permission are given so we either need and extension or protocol to identify such request and take action.
IE dosnt have out of box protocol handler like chrome:http://dooziesoft.com so one method to create that is using the registry editing find below .reg file that will force open URL in IE when prefixed with ie:http://dooziesoft.com it will provide a prompt though on accepting it would open IE and run the URL
Once you save above content in .reg file just double click to install and windows will do the magic to register new registry files.
P.S. : you would need administrator access to get this working