5 Replies Latest reply on Aug 5, 2009 1:03 PM by Brandon Ellis

    Updating both app and AIR




      I'm using the air update framework to update my app.  However, I'd also like AIR to update itself at the same time, so my app can use new API additions, such as

      I thought the only thing I'd have to do is change the namespace, as in

      <application xmlns="http://ns.adobe.com/air/application/1.5.2">

      I've made this change, published the new AIR file using the new sdk, and updated my update.xml file so an update would occur.  But when the app attempts to update, I get the following window reporting an error:



      My app.xml file looks something like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://ns.adobe.com/air/application/1.5.2">
        <id>my id</id>
        <filename>my filename</filename>
        <description>my desc</description>
        <name>my name</name>
        <copyright>my copyright</copyright>


      Shouldn't AIR and the app update correctly?  Does anybody know why I'm getting such an error?

        • 1. Re: Updating both app and AIR
          Brandon Ellis Level 1


          Have you tried using the .airappinstall.log file to see if you can get a more specific error message?



          1 person found this helpful
          • 2. Re: Updating both app and AIR
            marknordine Level 1

            Hi Brandon,


            Thanks for that helpful tip.  This is the output after attempting the install:


            Starting combined app/runtime update
            UI SWF load is complete
            stateRunningAppInstaller: appinstaller -runtime C:\DOCUME~1\username\LOCALS~1\Temp\AIR10.tmp -update -withRuntime "c:\program files\app folder\appname.exe" file:///C:/Documents%20and%20Settings/username/Application%20Data/com.company.subfolder.subfolder.id.1/Local%20Store/%23ApplicationUpdater/update.air 1.1
            App installer failed; exit code 9
            begin quitting
            attempting launch of appname


            Then the old version of the app launches.

            • 3. Re: Updating both app and AIR
              Brandon Ellis Level 1

              this should help you out:




              • 4. Re: Updating both app and AIR
                marknordine Level 1

                I've also created .airappinstall.log and received the following output after installation fail:


                Starting update of c:\program files\app folder\appname.exe
                Updating from file:///C:/Documents%20and%20Settings/username/Application%20Data/com.company.subfolder.subfolder.incorrectid.1/Local%20Store/%23ApplicationUpdater/update.air
                Updating to version 0.348
                UI SWF load is complete
                UI initialized
                Unpackaging to C:\Documents and Settings\username\Local Settings\Temp\fla17.tmp
                unpackaging is complete
                application is bound to side-by-side version 1.0
                application is bound to this version of the runtime
                app id com.company.subfolder.subfolder
                pub id incorrect_id.1
                Application located at c:\program files
                AIR file app id, pub id, and version don't match
                installed app id com.company.subfolder.subfolder
                installed pub id correct_id.1
                Requested version: 0.348; AIR file version: 0.348
                Re-launching application from c:\program files\app folder\appname.exe
                starting cleanup of temporary files
                application installer exiting


                After seeing my id was different, I realized what was wrong.  Flash CS4 had recently crashed, and the location of my cert was reset.  Apparently, I selected the wrong one when publishing.  Again, thanks for your tip on the log files, as I wouldn't have been able to figure this out without them.

                • 5. Re: Updating both app and AIR
                  Brandon Ellis Level 1

                  Glad to help