Search code examples
c#windowsbrowserfile-type

Making windows application visible to browser


Background info: I have a windows application (in c#) that handles a custom file type which is just a wrapper for .pdf and .doc files. The user has to download and install this program from the website in order to view and edit their custom file types and save them back to the server.

Question: Is there any way to make sure when a file is downloaded the application starts and opens the file by altering the install files of the application? I have been looking through the MSDN documentation on file types and it is registered but I couldn't find a handler for On Download. Any guidance is useful, I'm new to stackoverflow and c#.


Solution

  • You will need to register a mime type on the computer during your install process. Then you will need to send the corresponding mime type with the download.

    Here is some basic info.

    http://msdn.microsoft.com/en-us/library/ms775148(v=vs.85).aspx