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

    Updating both app and AIR

    marknordine Level 1

      Hi,

       

      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

      System.disposeXML();
      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:

       

      error.png

      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>
        <version>1.1</version>
        <filename>my filename</filename>
        <description>my desc</description>
        <name>my name</name>
        <copyright>my copyright</copyright>
      
      
        <initialWindow>
          <content>main.swf</content>
          <systemChrome>standard</systemChrome>
          <transparent>false</transparent>
          <visible>true</visible>
          <maximizable>false</maximizable>
          <minimizable>true</minimizable>
          <resizable>false</resizable>
        </initialWindow>
      
      
        <icon>
          <image128x128>icons/AIRApp_128.png</image128x128>
          <image48x48>icons/AIRApp_48.png</image48x48>
          <image32x32>icons/AIRApp_32.png</image32x32>
          <image16x16>icons/AIRApp_16.png</image16x16>
        </icon>
        
      </application>
      

       

      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

          Hi,

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

           

          http://kb2.adobe.com/cps/403/kb403123.html

          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:

              http://forums.adobe.com/thread/217061

               

              Brandon

              • 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