how to update air application after install in system . updated not be reinstall will be automatically ? is it possiable?
+2
A:
Hi,
You can ask the user of the app if they want to update... or you can program the app to be updated silently each time you want/need.
If you are looking on how to auto-update here is a nice tutorial.
http://www.adobe.com/devnet/air/flex/quickstart/update_framework.html
Also please consult the flex help pages for more details.
Adrian,
timeister.com
Adrian Pirvulescu
2009-06-26 08:31:27
thank for response me but i want to air application (project) not AIR version . is it possiable
2009-06-26 08:35:02
+1
A:
Sorry, I miss-understood you :)
The answer is Yes!
Step 1. find a way to check inside the ap if a new update is available for your application.
Step 2. Download the new applications version (ex app_V1.1.air)
Step 3. Use this code.... :D
import flash.fileSystem.File;
import flash.desktop.Updater;
var updater:Updater = new Updater();
var airFile:File = File.applicationStore.resolvePath("app_V1.1.air");
var version:String = "1.1";
updater.update(airFile, version);
For more details... consult the flex help pages and search for flash.desktop.Updater
Adrian
Adrian Pirvulescu
2009-06-27 20:02:02