New file type and registry

  • Thread starter Thread starter Alex G.
  • Start date Start date
A

Alex G.

Hello,

I have a new file type with own extension (lets say .MA) and own MIME type
(application/myapp). The file should be opened by my application (myapp.exe)
from the place where it was loaded within an IE window.

I did some tricks with the registry. But IE downloads a file and then opens
it.

If I run my application like

....\myapp.exe http://myhost.com/myapp.ma

my application opens file as needed.

IE tries to execute it as ..\myapp.exe C:\..<IE Cache>\myapp[1].ma

What should I do, to get IE open my files without placing them to the cache?

Thank you for any help.

Alex.
 
Alex said:
I have a new file type with own extension (lets say .MA) and own MIME type
(application/myapp). The file should be opened by my application (myapp.exe)
from the place where it was loaded within an IE window.
I did some tricks with the registry. But IE downloads a file and then opens
it.
If I run my application like
my application opens file as needed.
IE tries to execute it as ..myapp.exe C:..<IE Cache>myapp[1].ma
What should I do, to get IE open my files without placing them to the cache?
Thank you for any help.

Hi Alex,

IE will always try to cache the file. You can prevent it at server side:

How to prevent caching in Internet Explorer
http://support.microsoft.com/kb/q234067/

Kind regards

Hans
 
Hans,
Hi Alex,

IE will always try to cache the file. You can prevent it at server side:

How to prevent caching in Internet Explorer
http://support.microsoft.com/kb/q234067/

I have tried that. IE shows an error message now "Internet Explorer
cannot download myfile.asp from host1. Internet Explorer was not able
to open this Internet site. The requested site is either unavailable or
cannot be found. Please try again later."

It is hard to believe, that IE cannot open a registered local
application with a URL rather that a path to a cached file.

Still looking for an advise.

Thanks.
Alex G.
 
So far as I know, that's not possible. IE must store the file in order to
pass it to an application.


Alex G. said:
I have a new file type with own extension (lets say .MA) and own MIME type
(application/myapp). The file should be opened by my application (myapp.exe)
from the place where it was loaded within an IE window.
I did some tricks with the registry. But IE downloads a file and then opens
it.
If I run my application like
my application opens file as needed.
IE tries to execute it as ..\myapp.exe C:\..<IE Cache>\myapp[1].ma
What should I do, to get IE open my files without placing them to the cache?
 
Alex G. said:
Hello,

I have a new file type with own extension (lets say .MA) and own MIME type
(application/myapp). The file should be opened by my application (myapp.exe)
from the place where it was loaded within an IE window.

I did some tricks with the registry. But IE downloads a file and then opens
it.

If I run my application like

...\myapp.exe http://myhost.com/myapp.ma

my application opens file as needed.

IE tries to execute it as ..\myapp.exe C:\..<IE Cache>\myapp[1].ma

What should I do, to get IE open my files without placing them to the cache?


Why do you want "to get IE" to open your files?
Why not open them in your app? E.g. get a download prompt
and reply Open. My guess is that MIME sniffing could be getting
in the way. E.g. if that MIME type looks too much like something
that IE knows how to open it can ignore the Content-type header
unless you specifically forbid it from doing that but then you have
to have a filename with a proper extension:

Disable: Open files based on content, not file extension
(in Security settings, Miscellaneous section)

Thank you for any help.

Alex.


Good luck

Robert Aldwinckle
---
 
Back
Top