Skip to main content
roostertoons
Known Participant
September 20, 2014
Question

how do I update my desktop app

  • September 20, 2014
  • 0 replies
  • 170 views

Ok. So I have a function 'initUpdate'

  public function initUpdate():void {

  var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();

  appUpdater.addEventListener(UpdateEvent.INITIALIZED, updateInitialized);

  appUpdater.addEventListener(UpdateEvent.CHECK_FOR_UPDATE, checkForUpdate);

  appUpdater.addEventListener(UpdateEvent.DOWNLOAD_START, updateDownloadStarted);

  appUpdater.addEventListener(UpdateEvent.DOWNLOAD_COMPLETE, updateDownloadComplete);

  appUpdater.configurationFile = new File("app:/updateConfig.xml");

  appUpdater.initialize();

  trace(appUpdater.configurationFile);

  trace(appUpdater.currentVersion);

  trace(appUpdater.isUpdateInProgress);

  }

I followed all of the instructions.

updateConfig.xml:

<?xml version="1.0" encoding="utf-8"?>

<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">

     <url>http://web/address/to/updateDescriptor.2.5.xml</url>

    <delay>1</delay>

</configuration>

updateDescriptor.2.5.xml:

<?xml version="1.0" encoding="utf-8"?>

     <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">

       <versionNumber>1.1</versionNumber>

       <url>https://web/address/to/myApp.air</url>

       <description>This is the latest version of the Sample application.</description>

</update>

I packaged this app, then installed it on my computer.

then I created another app then increased the version number in 'application.xml'

I packaged the app and put it on the web 'https://web/address/to/myApp.air'

I opened the app that I had installed previously and did not receive any update prompt.

did I miss something?

from:

public function updateInitialized(ue:UpdateEvent):void {

  trace('update initialized');

  }

  public function checkForUpdate(ue:UpdateEvent):void {

  trace('check for update');

  }

  public function updateDownloadStarted(ue:UpdateEvent):void {

  trace('update download started');

  }

  public function updateDownloadComplete(ue:UpdateEvent):void {

  trace('update download complete');

  }

the only output I get is 'update initialized'. nothing else.

I am using the air 14 sdk.

This topic has been closed for replies.