开发者

Adobe AIR Updater Problem

开发者 https://www.devze.com 2023-01-13 19:36 出处:网络
i just wanted to update an AIR Application for a client. But when the update framework (i\'m using the ApplicationUpdaterUI) has downloaded the AIR file and wants to install it, it says that the AIR f

i just wanted to update an AIR Application for a client. But when the update framework (i'm using the ApplicationUpdaterUI) has downloaded the AIR file and wants to install it, it says that the AIR file is damaged. When i'm installing the downloaded file (copied it from the #ApplicationUpdate dir) by hand everything works fine. Wiredly enough, everything worked fine the last time.

Any idea what maybe be the cause to this problem?

Adobe AIR 2.0.2.12610 App compiled with Flex 4.0

Thanks in advance

Edit: This is whats in the Logfile when the updating process fails:

[2010-09-01:14:09:20] Starting update of c:\programme\myapp\myapp.exe
[2010-09-01:14:09:2开发者_Python百科0] Updating from file:///C:/Dokumente%20und%20Einstellungen/VAdmin/Anwendungsdaten/myapp.4BCA79BE2D83E8B0AFDB124EAD7E123E1B6A1E28.1/Local%20Store/%23ApplicationUpdater/update.air
[2010-09-01:14:09:20] Updating to version 0.9.509
[2010-09-01:14:09:20] UI SWF load is complete
[2010-09-01:14:09:21] UI initialized
[2010-09-01:14:09:21] beginning UI styling
[2010-09-01:14:09:21] UI styling complete
[2010-09-01:14:09:21] Unpackaging to C:\Dokumente und Einstellungen\VAdmin\Lokale Einstellungen\Temp\fla1E6.tmp
[2010-09-01:14:09:21] failed while unpackaging: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" errorID=2032]

Timo


For everyone interested in the solution: I was doing this:

            try {
                for each (var win:NativeWindow in NativeApplication.nativeApplication.openedWindows) {
                    winClosingEvent = new Event(Event.CLOSING, false, true);
                    win.dispatchEvent(winClosingEvent);
                    if (!winClosingEvent.isDefaultPrevented()) {
                        win.close();
                    }
                }
            } catch (e:Error) {
            }

when i was closing my application. After removing this source it worked.... again. Still, i have no idea why this seems to break the air app now.


its hard to say, but seems to be that current AIR release is buggy, anyway check this

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号