tags:

views:

1159

answers:

3

Adobe Air brings following exception:

The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author.

Please add the different reasons which may lead to this error.

A: 

We had the same error as this guy:

The file ~/.airappinstall contains the following error:

failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]

The actual reason was not a damaged file or something like this, but our machine had a date from the past, which was not valid for the given certificate. After correcting the date/time on the computer, the installation worked just fine.

Mauli
A: 

Make sure you are signing the Application distributable and distributing the certificate along with the .air file.

I ran into same problems and solved it this way.

Sumit Ghosh
A: 

I had this issue when using Flash Builder 4, but building a Flex 3 application.

Basically, the installed AIR SDK in the Flex 3 SDK folder was AIR 1.5.3 (if I remember correctly), but the Flex 4 SDK folder had the AIR 2.0 SDK files (I'm not completely what the problem was).

My solution was to download the AIR 2.0 SDK, and unzip it over the Flex 3 SDK folder. Once I did that, the installation file worked fine. There is actually an article on Adobe about overwriting the AIR SDK files this way, although it didn't mention anything about installations or Flash Builder 4.

Schmuli