Search code examples
airadobeflex4.5

How do I migrate certificates for my AIR application that uses a native installer?


I have an Adobe AIR application that I package in a native installer for Windows. I just got a new certificate to sign it with and signing it with the new certificate works fine. However if I try to install it on a computer that has a previous version I get an error that the installer has been misconfigured.

Installer misconfigured error

If I uninstall the previous version, the installation works fine.

I've looked at the ADT tool and there is a -migrate (Adobe docs) option where you first package and sign an air file with the new certificate and then use the adt -migrate command to sign the air file with the migration (old) certificate. But this won't work because I'm not able to package my app to a .air file since it uses NativeProcess.


Solution

  • I was finally able to use the adt -migrate command. I had to remove the tag from my program-app.xml file. After I did that, I was able to package to an air file without getting an error about the supported profiles. I followed the Adobe docs for the rest of the packaging process and this time installing over the old version didn't result in any errors.