This technote addresses the installation issue of Adobe AIR applications after 30th Oct 2017 that is signed with SHA1 certificate. It is applicable to both Windows and Mac.
Issue
When you install your AIR application, the installation fails with the below error. The error dialog is a generic installation failure message that could occur for various reasons. One of them is due to signature validation failure.
Adobe Air Application Installer Damaged
Who should use this solution?
When installing an Adobe AIR app, you get the message 'The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author." In most cases, the installer file is not actually damaged. Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author. 'C: Program Files (x86) Common Files Adobe AIR.
If your developed AIR application fails to install after 30th Oct 2017.
Issue confirmation
Follow the steps below to verify if the signature validation failure is the cause of the installation failure:
- Open the application installation logs. The location of the log files for different platforms is mentioned in the article: https://helpx.adobe.com/air/kb/logging-air-2-desktop-application.html
- If the installation log contains the error: “Package signature validation failed”, it indicates that the application is signed with SHA1 certificate.
- Set your system date to a date prior to 30th Oct 2017, and try to install the application again. Successful installation confirms that your application is impacted by the signature validation issue.
Solution
You will have to re-sign your Adobe AIR application. Follow the steps below to re-sign your application:
- Rename your Adobe AIR application by changing its extension from .air to .zip. In case you don’t see the extension in the filename, enable the filename extension before renaming the application.
- Extract the .zip file renamed in Step 1.
- Go to the extracted folder and perform the following modifications (in the order specified):
- Move xml present inside META-INFAIR folder to the root of the extracted folder.
- Delete “META-INF” folder.
- Delete “mimetype” file located in the root of the extracted folder.
- Download the latest AIR SDK for your platform from http://www.adobe.com/devnet/air/air-sdk-download.html.
- Locate the AIR SDK archive file downloaded in Step 4 and extract the AIR SDK Compiler (if on Windows) or mount the AIR SDK Compiler dmg (if on Mac).
- Open the command prompt and change the current working directory to the root directory of the extracted AIR application directory.
- Use the command below to re-package the AIR application with a new certificate:
Adobe Air Installer File Damaged
<AIR_SDK_compiler_path>binadt -package -storetype pkcs12 -keystore <app_signing_certficate_path> myApp.air application.xml .
Command line parameters:
- AIR_SDK_compiler_path – Location of AIR SDK compiler extracted or mounted in Step 5.
- app_signing_certficate_path – Fully qualified path of your application signing certificate. Make sure you are using SHA256 certificate.
- myApp.air – Name of the application to be packaged.
- application.xml – The file that was moved in Step 3.A
When prompted, enter the password of your application signing certificate.
Note:
Do not ignore the . (dot) at the end of the packaging command above. It is used to package all the resources present in your existing application. For more details on packaging AIR applications, refer https://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html.
Workaround
AIR applications with the above-mentioned issue can be installed using two methods.
Using keyboard shortcuts:
Install the Adobe AIR Runtime
Steps to follow on Windows:
1. Go to C:Program Files (x86)Common FilesAdobe AIRVersions1.0
2. While holding the “Ctrl” key, select the Adobe AIR Application Installer.exe -> Right click on it -> Run as Administrator. Do not take your finger off the “ctrl” key until you see the window open up.
3. Select and open the AIR application to be installed.
Steps to follow on Mac:
1. Go to /Applications/Utilities
2. While holding the “command” key, double click on the Adobe AIR Application Installer. Do not take your finger off the “command” key until you see the window open up.
Adobe Air Installer File Is Damaged Windows 10
3. Select and open the AIR application to be installed.
The Adobe AIR Application should be installed successfully.
Using the new -ignoreExpiredCertificateTimestamp directive while launching AIR Application installer using Command Prompt/Terminal
Install the Adobe AIR Runtime
Steps to follow on Windows:
1. Open a command prompt as Administrator.
2. Run the following command:
“C:Program Files (x86)Common FilesAdobe AIRVersions1.0Adobe AIR Application Installer.exe” – ignoreExpiredCertificateTimestamp
3. Window opens up.
4. Select and open the AIR application to be installed.
Adobe Air Offline Installer Download
Steps to follow on Mac:
1. Open Terminal.
2. Run the following command:
Adobe Air Installer File Damaged Windows 7
/Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer/ -ignoreExpiredCertificateTimestamp
3. Window opens up.
4. Select the AIR application to be installed.
Adobe Air Installer Damaged Windows
Adobe AIR Applications gets installed successfully.