I'm posting this mostly for myself, but others may benefit as well. Let me start off by saying I'm not a fan or proponent of Internet Information Server (IIS) or Microsoft in general. My personal hosting preference, which I've blogged about, is Apache running on Linux. At work most of our production Web servers are running IIS so I'm force to work with it from time-to-time. On more than one occasion I've run into the problem of IIS not understanding the .air extension of Adobe Integrated Runtime (AIR) applications. This is obviously a problem if you are deploying AIR install badges on an IIS server or you are pointing AIR app updates (using the built-in updater API) at a URL, since both of these involve users accessing a file that ends in the .air extension.
The solution to this problem is really simple but I've forgotten it enough that I'm posting it as a blog entry. Below are textual instructions on how to add the .air extension as a new MIME type to IIS. If you are more a visual type learner I've posted two links where other bloggers list the same instructions with screenshots from the IIS Manager application. Oddly enough I couldn't find any instructions on how to do this on Adobe's site or in Adobe technotes.
How to add the .air file extension to IIS:
- launch Internet Information Services (IIS) Manager
- expand the Web Sites tree control so all your Web sites are displayed
- right-click your target Web site and select Properties
- select the HTTP Headers tab
- press the MIME Types button toward the bottom of the HTTP Headers tab
- in the MIME Types window that displays, press the New button
- a small window will display asking you to input an extension and a MIME type. For extension type .air. For MIME Type copy and paste the following text: application/vnd.adobe.air-application-installer-package+zip
- press the Ok button
- close any additional windows or dialog boxes
- if you have multiple Web sites in IIS repeat steps 3 through 10 for each target site
Graphical instructions - ploem blog