Adobe AIR update framework

Hi all
I am using the framework with an application Flex  built on AIR, no problem, everything is ok.
(The application is built using the db Sqlite).
Someone knows if it is possible to add one or more script, updating a precise version, to update the db (to add index, fields, etc...) ?
thanks in advance...

Thank you.
So, if I can understand,  the framework itself does not include possibility of update of the db, and is necessary to execute scripts on the db after the update, like this:
        public function check4Update():void {
            //setApplicationVersion(); // Find the current version so we can show it below
            appUpdater.updateURL = AirFlex.APPLICATION.configuration.syncEngineConfiguration.updateURI;
            appUpdater.isCheckForUpdateVisible = false; // We won't ask permission to check for an update
            appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate); // Once initialized, run onUpdate
            appUpdater.addEventListener(ErrorEvent.ERROR, onError); // If something goes wrong, run onError
            appUpdater.initialize(); // Initialize the update framework
        private function onError(event:ErrorEvent):void {
            Alert.show(event.toString());
        private function onUpdate(event:UpdateEvent):void {
            appUpdater.checkNow(); // Go check for an update now
   //  now, if the update is ok :
   ...... execution of the scripts to update the Db.....................
is right ?????

Similar Messages

  • Flash Builder and Adobe AIR update framework

    Hi,
    I posted this in AIR forum , but thought it happens with new flash builder and flex 4 beta , i should do here also
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same given in the updater example i mentioned in the link above. Only difference is i am using spark framework. The appUpater.initialize() never seem to work and keeps throwing an exception. Any alternatives so suggestions ?
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • AIR Update framework with Flash Builder

    Hi,
    I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same give in the example i mentioned above.
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • Unable to install Adobe Air Update

    I am unable to install an Adobe Air update.  I am running Windows7, getting error code 80040154.  Could it be Kapersky anti virus software blocking?

    Thank you for your help.  I have suspended Kapersky but I cannot find Air when I search in the Programs and when I try to install I now get a message saying 'it may be your administrator blocking you'.  I am the only user and set up as the Administrator but do not know how to check if this is the case.
    I have managed to install the application that needs Air on an old XP notebook.  Much Appreciation for your help. RJ

  • Adobe AIR update for Flash CS3

    Hi, i'm having some trouble installing the adobe air update
    for flash CS3.
    I've installed it like 5 times, it always says that the
    installation is complete.
    But when i go to flash and try to make an AIR file it's not
    in the list, the only things i see are those:
    image

    ow, totally my bad, i switched the splash screen and that
    screen.
    Problem solved

  • Adobe Air updater goes Error #1034

    Hi,
    we've packaged an air application with an old version of air runtime that is automatically deployed to our customer computer.
    Everything goes well on install, but when we launch our application, it logically propose our customer to update to the last version of Air.
    The problem is that during the update process of air runtime (our application is still running), we have an error #1034 appearing.
    the Adobe Air Updater logs are the following :
    [2012-01-06:10:40:11] Runtime Installer begin with version 3.0.0.4080 on Windows 7 x86
    [2012-01-06:10:40:11] Commandline is: -silent -eulaAccepted
    [2012-01-06:10:40:11] Installed runtime (3.0.0.4080) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-06:10:40:11] Runtime Installer end with exit code 0
    [2012-01-06:10:40:42] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -updatecheck
    [2012-01-06:10:40:42] Runtime Installer begin with version 3.0.0.4080 on Windows 7 x86
    [2012-01-06:10:40:42] Commandline is: -updatecheck
    [2012-01-06:10:40:42] Installed runtime (3.0.0.4080) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2012-01-06:10:40:42] Performing pingback request
    [2012-01-06:10:40:43] Pingback request completed with HTTP status 200
    [2012-01-06:10:40:43] Starting runtime background update check
    [2012-01-06:10:40:43] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.0.0.4080/update
    [2012-01-06:10:40:43] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.0.0.4080/update to C:\Users\ksaidi\AppData\Roaming\Adobe\AIR\Updater\Background
    [2012-01-06:10:40:44] Unpackaging complete
    [2012-01-06:10:40:44] Download success
    [2012-01-06:10:40:44] Runtime updated downloaded
    [2012-01-06:10:40:44] Exiting due to error: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception TypeError: Error #1034" errorID=1034]
    [2012-01-06:10:41:05] Runtime Installer end with exit code 7
    The most disturbing is that if we close our application and run the updater alone, everything goes well, and our application is running perfectly.
    Anyone have a clue on what is happening?
    Thanks a lot
    Antoine

    I've seen this error before in a few posts, but I don't think I've seen a solution or exact cause.  Are you seeing this on every system you try or is it isolated to particular machines?  If it's occurring everywhere, would you be willing to send me ([email protected]) your installer so I can give it a try?
    Thanks,
    Chris

  • Android: This app requires a newer version of Adobe AIR - update now?

    Trying to run an app on the Emulator for Android:
    and I get this message.
    This app requires a newer version of Adobe AIR - update Adobe AIR now?
    of course when I do click on the Update button - nothing happens, it just goes back to the main screen of the Emulator.
    How do I update it. I now know how to install Adobe AIR runtime into the Emulator, but I can't find how one updates it?
    I only installed "adt-bundle-windows-x86_64-20130219" a few days ago...
    thanks

    Ok, got it.
    Anyone else need help .. you can get the latest runtimes here.
    http://www.adobe.com/devnet/air/air-sdk-download-win.html
    It's packaged in the AIR SDK.
    Nice.

  • Our business pc had an Adobe Air update. Now pc won't boot up any windows processes.

    The Adobe Air update popped up and my biz partner accepted it without reading it. Now the pc won't boot up. He cannot even get to the point of removing the update or restoring the pc. Was this some type of malware or an error that Adobe can correct? HOW do I get it off?

    It could be malware: there are LOT of fake updates going around at the moment.
    What does the PC do - where does it get to in the boot, what happens next?

  • Adobe AIR Updater

    Whle in PSE 9 I received a prompt to update the Adobe Air Updater... what is
    this and do I need it?  Never heard of this so unsure what to do.  Thanks.

    That's a normal update for some Adobe applications, so it
    should be ok to update.
    MTSTUNER

  • Air Update Framework Issue... Help please!

    The following code is from the Air Employee Directory example
    to which I have added an Update Object, the app installs and
    updates with no problem, but as soon as the update is done and it's
    time for the app to start, the app just doesn't come up. It was
    working fine before I added the update object... Any idea on what I
    could be doing wrong?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
    applicationComplete="onApplicationComplete()" height="100%"
    width="100%" frameRate="45"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    visible="false"
    showEffect="Fade" xmlns:local="*"
    creationComplete="checkUpdate()">
    <mx:Script>
    <![CDATA[
    import mx.logging.Log;
    import com.adobe.empdir.commands.ui.CloseApplicationCommand;
    import mx.binding.utils.BindingUtils;
    import mx.events.StateChangeEvent;
    import mx.events.ResizeEvent;
    private function onApplicationComplete() : void
    callLater( ui.init );
    // We listen to CLOSING fromboth the stage and the UI. If
    the user closes the app through the taskbar,
    // Event.CLOSING is emitted from the stage. Otherwise, it
    could be emitted from TitleConrols.mxml.
    ui.addEventListener( Event.CLOSING, onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSING,
    onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSE,
    onWindowClose );
    private function onWindowClose( evt:Event ) : void
    NativeApplication.nativeApplication.exit();
    private function onWindowClosing( evt:Event ) : void
    evt.preventDefault();
    var cmd : CloseApplicationCommand = new
    CloseApplicationCommand();
    cmd.execute();
    ]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import air.update.events.UpdateEvent;
    import mx.controls.Alert;
    import flash.events.ErrorEvent;
    import air.update.ApplicationUpdaterUI;
    * @var the object that that handles the update related
    actions
    private var appUpdater:ApplicationUpdaterUI = new
    ApplicationUpdaterUI();
    * This function is triggered when the application finished
    to load;
    * Here we initialize <code>appUpdater</code> and
    set some properties
    private function checkUpdate():void {
    setApplicationVersion();
    // we set the URL for the update.xml file
    appUpdater.updateURL = "
    http://localhost/updater/update.xml";
    //we set the event handlers for INITIALIZED nad ERROR
    appUpdater.addEventListener(UpdateEvent.INITIALIZED,
    onUpdate);
    appUpdater.addEventListener(ErrorEvent.ERROR, onError);
    //we can hide the dialog asking for permission for checking
    for a new update;
    //if you want to see it just leave the default value (or set
    true).
    appUpdater.isCheckForUpdateVisible = false;
    //if isFileUpdateVisible is set to true, File Update, File
    No Update,
    //and File Error dialog boxes will be displayed
    appUpdater.isFileUpdateVisible = false;
    //if isInstallUpdateVisible is set to true, the dialog box
    for installing the update is visible
    appUpdater.isInstallUpdateVisible = false;
    //we initialize the updater
    appUpdater.initialize();
    * Handler function triggered by the
    ApplicationUpdater.initialize;
    * The updater was initialized and it is ready to take
    commands
    * (such as <code>checkNow()</code>
    * @param UpdateEvent
    private function onUpdate(event:UpdateEvent):void {
    //start the process of checking for a new update and to
    install
    appUpdater.checkNow();
    * Handler function for error events triggered by the
    ApplicationUpdater.initialize
    * @param ErrorEvent
    private function onError(event:ErrorEvent):void {
    Alert.show(event.toString());
    * A simple code just to read the current version of the
    application
    * and display it in a label.
    private function setApplicationVersion():void {
    var appXML:XML =
    NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    ]]>
    </mx:Script>
    <mx:TraceTarget level="0" includeDate="false"
    includeTime="false"
    includeCategory="true" includeLevel="true">
    <mx:filters>
    <mx:Array>
    <mx:String>*</mx:String>
    </mx:Array>
    </mx:filters>
    </mx:TraceTarget>
    <ui:ApplicationUI id="ui" width="100%" height="100%"
    />
    </mx:Application>

    This was an issue with the Update Framework in AIR SDK 1.5.3, which has been fixed. If you still want to use the ApplicationUpdaterUI, you can replace the swc in Flex SDK 3.6 with an applicationupdater_ui.swc from a newer version of AIR.
    Have a look at solution 3 in this post for some details on where to find the applicationupdater_ui.swc and how to replace it.
    http://forums.adobe.com/message/3060118#3060118
    Hope this helps!
    Horia

  • Since Installing Adobe Air update Creative Cloud no longer works

    Hello,
    I recently installed the update for Adobie Air, and now I can not get the Creative Cloud manager to load the home screen or apps screen files or otherwise I just get the blue spinning wheel.
    I pay a monthly membership and now I can not download any programs.
    Please advise
    Thanks you,
    Christine

    Adobe Creative Cloud:
    Home Screen / Constant blue spinning wheel
    MAc OSX LION
    I had the same problem: ........ went on for weeks...
    Fixed by logging out of all my Adobe Creative Cloud Assets....
    Restarting machine and resigining in.....
    everyyyyy where......
    Seems kool now.....
    Cheers,
    Kai

  • Adobe Air update install fails

    I have been using Acrobat.com as a desktop application. As of
    today, every time I launch the application, I get an update
    notification about an update for the Adobe Air platform for
    Acrobat.com. When I click to update, the installation fails, and
    the error message tells me to contact the autor of the application.
    Do you know anything about this?

    I have Acrobat.com installed on my system and I became aware
    of an update which I understand to be called Acrobat.com AIR.
    I downloaded Acrobat.com AIR but when it was installing, a
    message appeared which read, "Same version as installed version."
    Then I was given the option to "Un-install", the currently
    installed Acrobat.com, "Save" or "Cancel".
    Since I wasn't sure of the outcome, I canceled the process to
    play it safe. Was I being overly cautious?

  • Adobe AIR update has no digital signature. Is this normal?

    I installed Adobe Air and it says it needs to update. But when I click Update, my firewall says there is no digital signature. So, I don't kow if this Adobe product is OK.
    Every time, when I surf the Web, I get an Update Adobe message. I don't know if I should update. Last time I did, my computer crashed. It keeps crashing now every 45 minutes. This is why I tried to update Adobe to start with.
    Thank you in advance for any help in dealing with this Adobe update with no digital signature.

    This seems to be the case, as the two products are developed by the same team.

  • Adobe AIR update for TourDeFlex?

    "TourDeFlex requires an update to Adobe AIR ... not allowed by your Administrator". What update? I see no system requirements for
    TourDeFource apart from the OS. I would like to install the update myself. Using: Windows 7 Enterprise.

    ok, but seeing as Adobe AIR was (most likely) initially installed during the Adobe Flash Builder Trial version install, it would also be possible for you to update the Trial version kit to include the latest AIR, no?

  • Adobe AIR Update for Android FAILS TO UPDATE

    Why is the update for Adobe AIR failing to update and also why is it that nobody is able to install?

    Nathan I would recommend posting your inquiry to the Adobe AIR forum at http://forums.adobe.com/community/air.

Maybe you are looking for

  • MOS Excel 2007/2010/2013

    I am currently considering the Microsoft Office Specialist certification for Microsoft Excel. At the moment, I work on MO Excel 2007. I have purchased the study guide for MO Excel 2010 and I have access to E-Learning for MO Excel 2013! With office 20

  • Edge project resizes to 0 height on open

    Hello, I am having a problem with my project stage resizing to 0 when I open the working file. I can set the height and save it but once I open it agian it sets it to zero and I can't preview it as my overflow is set to hidden. Any help would be much

  • Creating WBS element using bapi BAPI_PS_INITIALIZATION

    Hi All, I have created Project definition successfully  using function module "BAPI_PROJECT_MAINTAIN" . But while trying to create Wbs-Element for the project definition using same function module  "BAPI_PROJECT_MAINTAIN"   we are getting the followi

  • Tuxedo 8.1 single context multithreaded workstation client

    We just moved to Tuxedo 8.1 from Tuxedo 7.1. One of our appications has started to fail. This particular application is a single context multithreaded workstation client. All Tuxedo operations are performed from the same child thread. The BEA documen

  • Why won't powerpoint files open on my MacBook Pro?

    Could someone let me know why some files, such as PowerPoint, which worked find before, are no longer opening on my MacBookPro?