My installation package has been working fine till today, when I tried to install it onto a different OS: Windows 7 Home Premium, and before that, it always worked OKay on Win XP and Win 7 Pro. I found some discuss from the internet. The following post described the same symptom as I am encountering now:
Installing of Adobe Air file fails with “file damaged”.
And this post as well: Error while installign AIR Application (invalid package signature errorID=5022).
I found log file at directory: C:\Users\user name\AppData\Local\Adobe\AIR\logs\
[2000-01-07:17:45:24] Application Installer begin with version 3.2.0.2070 on Windows 7 x86
[2000-01-07:17:45:24] Commandline is: C:\Users\Demo\Desktop\eDirectory-1.8.4.air
[2000-01-07:17:45:24] Installed runtime (3.2.0.2070) located at c:\Program Files\Common Files\Adobe AIR
[2000-01-07:17:45:26] Unpackaging file:///C:/Users/Demo/Desktop/eDirectory-1.8.4.air to C:\Users\Demo\AppData\Local\Temp\fla3513.tmp
[2000-01-07:17:45:31] Package signature validation failed
[2000-01-07:17:45:31] Got an unexpected fatal error while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
[2000-01-07:17:45:35] Application Installer end with exit code 7
Some one said it was due to some special characters, such as "&".
To sum up, there are some sayings as deductions:
1. special characters;
2. wrong computer date: the date of the computer which is used to publish the installing package is prior to the valid date of certificate;
3. wrong Timestamp setting from digital signature license option: should be unchecked;
4. including a folder of images;
5. applying custom application icon image;
Most of the authors reported the issue as a bug of AIR.
Anyway, finally, I found the date of my Windows 7 Home Primum was set to 2000~~, and after I corrected it, the problem was solved.