I've had this problem a lot as well since I try to set my .URL associations to run Portable browsers off a Ramdisk. You have to use shdocvw.dll to read and parse the .URL file because the browser does not do it. Have the "HKEY_CLASSES_ROOT\.url" extension be handled by "HKEY_CLASSES_ROOT\InternetShortcut". This will then lead to the file being read by CLSID {FBF23B40-E3F0-101B-8488-00AA003E56F8} (shdocvw.dll) which will parse the URL inside of the .URL file and direct it to the correct protocol handler applications specified at "HKEY_CLASSES_ROOT\http" and "HKEY_CLASSES_ROOT\https".
Code: Select all
Windows Registry Editor Version 5.00
;---------------------------------------------------------------;---------------------------------------------------------------
[-HKEY_CLASSES_ROOT\.url]
[HKEY_CLASSES_ROOT\.url]
@="InternetShortcut"
---------------------------------------------------------------
[-HKEY_CLASSES_ROOT\.html]
[HKEY_CLASSES_ROOT\.html]
@="MyHTMLFile"
"Content Type"="text/html"
[-HKEY_CLASSES_ROOT\.htm]
[HKEY_CLASSES_ROOT\.htm]
@="MyHTMLFile"
"Content Type"="text/html"
[-HKEY_CLASSES_ROOT\.mht]
[HKEY_CLASSES_ROOT\.mht]
@="MyHTMLFile"
---------------------------------------------------------------
[-HKEY_CLASSES_ROOT\MyHTMLFile]
; Dont know effect of this, seems unnecessary
[HKEY_CLASSES_ROOT\MyHTMLFile]
@="IronPortable MyHTMLFile"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\MyHTMLFile\DefaultIcon]
@="T:\\IronPortable\\IronPortable.exe,0"
[HKEY_CLASSES_ROOT\MyHTMLFile\Shell]
[HKEY_CLASSES_ROOT\MyHTMLFile\Shell\Open]
[HKEY_CLASSES_ROOT\MyHTMLFile\Shell\Open\Command]
@="T:\\IronPortable\\IronPortable.exe --new-window \"%1\""
;[HKEY_CLASSES_ROOT\MyHTMLFile\shellex]
;[HKEY_CLASSES_ROOT\MyHTMLFile\shellex\IconHandler]
;@="{42042206-2D85-11D3-8CFF-005004838597}"
;---------------------------------------------------------------
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut]
@="Internet Shortcut"
"EditFlags"=dword:00000002
"IsShortcut"=-
"NeverShowExt"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\CLSID]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
[HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon]
@="T:\\IronPortable\\IronPortable.exe,0"
;[HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon]
;@="%SystemRoot%\system32\url.dll,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\open]
"CLSID"="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
"LegacyDisable"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\open\command]
@="rundll32.exe shdocvw.dll,OpenURL %l"
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\print\command]
;@=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,\
; 00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
; 25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,\
; 00,68,00,74,00,6d,00,6c,00,2e,00,64,00,6c,00,6c,00,2c,00,50,00,72,00,69,00,\
; 6e,00,74,00,48,00,54,00,4d,00,4c,00,20,00,22,00,25,00,31,00,22,00,00,00
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\printto]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\printto\command]
;@=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,\
; 00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
; 25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,\
; 00,68,00,74,00,6d,00,6c,00,2e,00,64,00,6c,00,6c,00,2c,00,50,00,72,00,69,00,\
; 6e,00,74,00,48,00,54,00,4d,00,4c,00,20,00,22,00,25,00,31,00,22,00,20,00,22,\
; 00,25,00,32,00,22,00,20,00,22,00,25,00,33,00,22,00,20,00,22,00,25,00,34,00,\
; 22,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex\ContextMenuHandlers]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
@=""
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex\IconHandler]
;@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex\PropertyHandler]
;@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex\PropertySheetHandlers]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shellex\PropertySheetHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
;@=""
;---------------------------------------------------------------
[-HKEY_CLASSES_ROOT\http]
[HKEY_CLASSES_ROOT\http]
@="URL:HyperText Transfer Protocol"
"EditFlags"=dword:00000002
"Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\http\DefaultIcon]
@="T:\\IronPortable\\IronPortable.exe,0"
[HKEY_CLASSES_ROOT\http\shell]
@="MyHTMLFile"
[HKEY_CLASSES_ROOT\http\shell\MyHTMLFile]
[HKEY_CLASSES_ROOT\http\shell\MyHTMLFile\command]
@="T:\\IronPortable\\IronPortable.exe --new-window \"%1\""
[HKEY_CLASSES_ROOT\http\shell\MyHTMLFile\ddeexec]
[HKEY_CLASSES_ROOT\http\shell\MyHTMLFile\ddeexec\Application]
@="ddeexec-http"
;---------------------------------------------------------------
[-HKEY_CLASSES_ROOT\https]
[HKEY_CLASSES_ROOT\https]
@="URL:HyperText Transfer Protocol with Privacy"
"EditFlags"=dword:00000002
"Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\https\DefaultIcon]
@="T:\\IronPortable\\IronPortable.exe,0"
[HKEY_CLASSES_ROOT\https\shell]
@="MyHTMLFile"
[HKEY_CLASSES_ROOT\https\shell\MyHTMLFile]
[HKEY_CLASSES_ROOT\https\shell\MyHTMLFile\command]
@="T:\\IronPortable\\IronPortable.exe --new-window \"%1\""
[HKEY_CLASSES_ROOT\https\shell\MyHTMLFile\ddeexec]
@=""
[HKEY_CLASSES_ROOT\https\shell\MyHTMLFile\ddeexec\Application]
@="ddeexec-https"
;---------------------------------------------------------------
;---------------------------------------------------------------
;---------------------------------------------------------------
;----- STARTMENUINTERNET
;---------------------------------------------------------------
;---------------------------------------------------------------
;---------------------------------------------------------------
;---------------------------------------------------------------
;Remove User Specific Settings
[-HKEY_CURRENT_USER\Software\Clients\StartMenuInternet]
;---------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"IronPortable"="Software\\Clients\\StartMenuInternet\\IronPortable\\Capabilities"
;---------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet]
@="IronPortable"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable]
@="Shek Iron Portable"
"LocalizedString"="Shek Iron Portable"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\DefaultIcon]
@="T:\\IronPortable\\IronPortable.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\shell\open\command]
@="T:\\IronPortable\\IronPortable.exe"
;---------------------------------------------------------------
; Capabilities
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\Capabilities]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\Capabilities]
"ApplicationName"="Shek Iron Portable"
"ApplicationIcon"="T:\\IronPortable\\IronPortable.exe,0"
"ApplicationDescription"="Shek Iron Portable AppDescription"
"Hidden"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\Capabilities\FileAssociations]
".htm"="MyHTMLFile"
".html"="MyHTMLFile"
".mht"="MyHTMLFile"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\Capabilities\StartMenu]
"StartMenuInternet"="IronPortable"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IronPortable\Capabilities\URLAssociations]
"http"="MyHTMLFile"
"https"="MyHTMLFile"
;---------------------------------------------------------------