Archive: Adding a MIME type to a virtual directory


Adding a MIME type to a virtual directory
Hi,

I am writing an NSIS installer wherein I have to add a mime type to a virtual directory created by the installer. Virtual directory is been created fine and two other virtual directories are created as applications as well. I found a script which registers a MIME type to a virtual directory which is an application. It works fine for me as well.

But I want to know if its possible to add a MIME type to a particular virtual directory which is not an application.

Has anyone done this before?
Your help is much appreciated.

Thanks,

Sid.


Unfortunately I don't have an answer to your question...

However I am curious to find out how you are creating the virtual directory.

One of my installers does this, but simple executes the IIS adsutil.vbs script


I am just checking what web site the user is installing (for Win 2003). Then after checking the web root directory I create a directory out in the web root directory.

Don't know whether this was a simple way. ;)