How to update adobe air application after installation?

how to update the air application after installation in the system. the update will not be reinstalled will it be automatic? is it possible?

+4
source share
2 answers

You can ask the user of the application if they want to update ... or you can program an application that will be updated silently every time you want / need.

If you are looking for how to auto-update here, this is a good tutorial.

http://www.adobe.com/devnet/air/flex/quickstart/update_framework.html

Also consult the flex help pages.

Edit
It looks like the link in the original answer is broken, so I edited this answer to provide the current working link to a tutorial on checking your application’s updates in the air and automatically updating, rather than updating AIR as requested by OP.

http://www.adobe.com/devnet/air/articles/air_update_framework.html

+3
source

Sorry, I missed - I understand you :)

Answer: Yes!

Step 1. Find a way to check inside ap if a new update is available for your application.

Step 2. Download the new version of the application (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 information ... refer to the flex help pages and search for flash.desktop.Updater


Adrian

+2
source

Source: https://habr.com/ru/post/1286799/


All Articles