Skip to content

Instantly share code, notes, and snippets.

@eirannejad
Last active July 19, 2022 17:03
Show Gist options
  • Save eirannejad/301b73dd791388f868ad2030ed48744e to your computer and use it in GitHub Desktop.
Save eirannejad/301b73dd791388f868ad2030ed48744e to your computer and use it in GitHub Desktop.
Registry file to add microsoft-ie URL schema to windows
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\microsoft-ie]
@="URL:Internet Explorer Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\microsoft-ie\shell]
@="open"
[HKEY_CLASSES_ROOT\microsoft-ie\shell\open]
[HKEY_CLASSES_ROOT\microsoft-ie\shell\open\command]
@="cmd /v:on /q /c \"set url=%1 & start C:\\PROGRA~1\\INTERN~1\\iexplore.exe !url:~13!\" "
[HKEY_CLASSES_ROOT\microsoft-ie-http]
@="URL:Internet Explorer Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\microsoft-ie-http\shell]
@="open"
[HKEY_CLASSES_ROOT\microsoft-ie-http\shell\open]
[HKEY_CLASSES_ROOT\microsoft-ie-http\shell\open\command]
@="cmd /v:on /q /c \"set url=%1 & start C:\\PROGRA~1\\INTERN~1\\iexplore.exe http!url:~17!\" "
[HKEY_CLASSES_ROOT\microsoft-ie-https]
@="URL:Internet Explorer Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\microsoft-ie-https\shell]
@="open"
[HKEY_CLASSES_ROOT\microsoft-ie-https\shell\open]
[HKEY_CLASSES_ROOT\microsoft-ie-https\shell\open\command]
@="cmd /v:on /q /c \"set url=%1 & start C:\\PROGRA~1\\INTERN~1\\iexplore.exe https!url:~18!\" "
@eirannejad
Copy link
Author

Similar to this it defines separate schemas for http and https

microsoft-ie-http://
microsoft-ie-https://

microsoft-ie: is also added for legacy compatibility with microsoft-edge: format described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment