Previously, I could run a locally installed helper application by registering this type of mime in the Windows registry. This allowed me to allow users to instantly click on the link to the current installation of our internal browser. This worked fine in Internet Explorer 5 (most often) and Firefox, but now doesn't work in Internet Explorer 7.
The file name passed to my shell / open / command is not a complete physical path to the downloaded installation package. The path parameter passed to IE
"C:\Document and Settings\chq-tomc\Local Settings\Temporary Internet Files\
EIPortal_DEV_2_0_5_4[1].expd"
This, unfortunately, does not allow the physical file when called FileExists()or when trying to create an object TFileStream.
The physical path does not have an Internet Explorer hidden cache subdirectory for temporary Internet files "Content.IE5\ALBKHO3Q"whose absolute path will be expressed as
"C:\Document and Settings\chq-tomc\Local Settings\Temporary Internet Files\
Content.IE5\ALBKHO3Q\EIPortal_DEV_2_0_5_4[1].expd"
Yes, subdirectories are arbitrarily generated by IE, and this should not be a concern if IE passes the full path to my helper application, which, unfortunately, it does not.
Installing the mime helper application is not a concern. It is installed / updated by a global login script for all 10,000 users around the world. The mime helper is called only when the user clicks on the internal web page with a link to install our desktop browser. This setting is returned with the mime type "application/x-expeditors". The registration of the mime type ".expd"/ is "application/x-expeditors"as follows.
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.expd]
@="ExpeditorsInstaller"
"Content Type"="application/x-expeditors"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ExpeditorsInstaller]
"EditFlags"=hex:00,00,01,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ExpeditorsInstaller\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ExpeditorsInstaller\shell\open]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ExpeditorsInstaller\shell\open\command]
@="\"C:\\projects\\desktop2\\WebInstaller\\WebInstaller.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type\application/x-expeditors]
"Extension"=".expd"
IE IE, , , , . "[n]" .
wininet GetUrlCacheEntryInfo, URL-, , IE.
, Shell, , .