0
I Use This!
Activity Not Available

Project Summary

PurposeAirSimpleUpdater uses Adobe AIR's Updater class to help you build self-updating AIR apps with just a few lines of extra code:

var myUpdater = new AirSimpleUpdater(
'http://www.example.com/air/application.xml',
'http://www.example.com/air/MyUpdateableAirApp-%version%.air'
);
myUpdater.run();
Getting startedTo use AirSimpleUpdater, you need to keep two files on your web server: The latest AIR installer archive for your application, and a copy of its application.xml file.

When you release a new version, simply overwrite the application.xml file and upload the new AIR installer archive. If the filename of your AIR file changes with each version (it contains the version number), then include %version% in your URL (optional).

If the code snippet in the first section is enough of an introduction for you, download updater-1.0.js to get started.

Or, you can download the sample application code and poke around.

To see AirSimpleUpdater in action, install version 1.0 of the sample application. After launching the application, you will be able to "auto-update" to version 1.1.

If you run into any trouble or have any feedback please email me.

Advanced usageYou may want to provide your own implementation for some of the functions in updater-1.0.js. For example:

myUpdater.noUpdateRequired = function()
{
alert("You already have the latest version! Congratulations!");
}Or:

myUpdater.whileWaiting = function(status)
{
switch (status)
{
case "CHECKING_FOR_UPDATE" :
statusText = "Checking for update, please wait...";
break;
case "DOWNLOADING_UPDATE" :
statusText = "Downloading update, please wait...";
break;
}
document.getElementById("status_update").innerHTML
= statusText;
}Some of the other functions you might want to customize:

Function Returns Default behavior Possible customized behavior noUpdateRequired Trigger normal program initialization beforeUpdate false to cancel update Asks the user if they would like to update Force the update compareVersions true if update required Numerically compares version numbers Compare using your own version numbering scheme whileWaiting Changes window title to update status Show a customized status box finishedWaiting Restores window title Hide customized status box handleError Displays error in an alert box Show a customized error box

Tags

adobeair air

In a Nutshell, air-simple-updater...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

BSD 4-clause (University of California-Specific)
Permitted

Place Warranty

Commercial Use

Modify

Distribute

Forbidden

Hold Liable

Use Trademarks

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    compare projects before you chose one to use
  • ...
    there are over 3,000 projects on the Open Hub with security vulnerabilities reported against them
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis