3 Replies Latest reply on Dec 21, 2011 9:03 AM by DonMitchinson

    adobe air 2.6 auto update problem..

    eerku Level 1

      hi friends,

       

      i am writing a multitouch application for like kiosk machine..

       

      and i want to add auto update functionally,

       

      i write this codes, but i am getting There was an error downloading the update. Error# 16824 error after downloading update...

       

      update_2_6.xml :

       

      <?xml version="1.0" encoding="utf-8"?>
      <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
          <versionNumber>0.0.4</versionNumber>
          <url>http://www.abc.com/updates/RixossIBoard_v004.air.zip</url>
          <description>This is an AIR2.6 release of my application</description>
      </update>
      

       

       

      update_config.xml :

       

      <?xml version="1.0" encoding="utf-8"?> 
      <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
          <url>http://www.abc.com/updates/update_2_6.xml</url> 
          <delay>0</delay>
           <defaultUI>
             <dialog name="checkForUpdate" visible="false" />
             <dialog name="downloadUpdate" visible="true" />
             <dialog name="downloadProgress" visible="true" />
             <dialog name="installUpdate" visible="true" />
         </defaultUI>     
      </configuration>
      

       

      in flash code:

       

      var updater:ApplicationUpdaterUI = new ApplicationUpdaterUI();
      updater.configurationFile = new File("app:/update_config.xml");
      updater.addEventListener(UpdateEvent.INITIALIZED, updaterInitialized);
      updater.addEventListener(ErrorEvent.ERROR, hatavarupdate);
      //updater.addEventListener(ErrorEvent.ERROR.hatavarupdate);
      updater.initialize();
      
      function hatavarupdate(evt:ErrorEvent):void
      {
          //trace (evt.type);    
      }
      
      function updaterInitialized(e:UpdateEvent):void{
          updater.checkNow();
      }
      

       

      what is problem?

       

      it check update ok, download update ok, but after download update i get the There was an error downloading the update. Error# 16824

       

      Thanks for relation,

       

      Ercan