martedì, settembre 21, 2010

Adobe AIR - Upgrading to 1.5.3 and Higher

I have an AIR 1.0 application that I like to deploy updates to. I have been gradually trying to update said application. However, after attempting to publish to AIR 2.0 the update would suddenly not recognize the previously installed version. The explanation is on Adobe’s site:

“Prior to AIR 1.5.3, AIR secured application updates signed with renewed certificates by comparing the publisher ID computed from the old and new certificates. Due to flaws in the definition of publisher ID, many customers found that this mechanism was not compatible with their renewed certificates. This method is now discouraged in favor of using migration signatures.”

Here are the steps that need to be taken if you wish to salvage your application (also from Adobe’s site):

Determine your application's current publisher ID. In an installed application, this is found in the META-INF/AIR/publisherid file.

1.       Add a <publisherID></publisherID> element in your descriptor, and copy your publisher ID into it.

2.       Update your application's namespace to 1.5.3.

3.       If you are creating a new AIR application you should not use the <publisherID> setting.