• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Windows 7 / IE8 Converts AIR file to ZIP

New Here ,
Aug 19, 2011 Aug 19, 2011

Copy link to clipboard

Copied

The AIR install badge works perfectly OK for most of my customers but occasionally ther are problems.  To overcome this I have created a support page with a direct link to the .air file (and also a .air.zip for Mac OS X as this unzips the file in the download process).  When I click the Save Target As... option in IE 8 it changes the filetype from .air to .zip and then saves it as a .zip file extension.  If I manually change the file extension back to .air then it works just fine however having to talk customers through the process of showing file extensions and then making the change is not exactly professional.

Any ideas how I can overcome this? 

TIA

David Anson

Views

2.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 23, 2011 Aug 23, 2011

You'll have to make the change on your Linux server.

If it is Apache, you can create a file called .htaccess in the uat directory with the following content in it:

AddType application/vnd.adobe.air-application-installer-package+zip .air

David Tucker has instructions on how to get this done on various servers: http://archive.davidtucker.net/2008/01/08/update-your-air-mime-type/

-Anirudh

Votes

Translate

Translate
Adobe Employee ,
Aug 22, 2011 Aug 22, 2011

Copy link to clipboard

Copied

I think setting the right content type header when serving the AIR file should do the trick.

The value should be: application/vnd.adobe.air-application-installer-package+zip

How you set that HTTP header will depend upon your server, I've done it on app engine by a simple: self.response.headers['Content-Type'] = "application/vnd.adobe.air-application-installer-package+zip"

-Anirudh

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 22, 2011 Aug 22, 2011

Copy link to clipboard

Copied

Anirudh

Not quite sure I understand where I need to apply your suggestion.

My HTML for the link to download is quite simple:

<a href="http://www.adv.co.uk/reader3/AirReader/uat/AirReader1.29.air">Windows and Linux</a>

Is it here that I need to make the change - and how - or somewhere else in the page?  The site is on a Linux server.

TIA

David

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 23, 2011 Aug 23, 2011

Copy link to clipboard

Copied

You'll have to make the change on your Linux server.

If it is Apache, you can create a file called .htaccess in the uat directory with the following content in it:

AddType application/vnd.adobe.air-application-installer-package+zip .air

David Tucker has instructions on how to get this done on various servers: http://archive.davidtucker.net/2008/01/08/update-your-air-mime-type/

-Anirudh

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2011 Aug 24, 2011

Copy link to clipboard

Copied

LATEST

Worked brilliantly.  Thanks very much.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines