简体   繁体   English

Adobe AIR Updater问题

[英]Adobe AIR Updater Problem

i just wanted to update an AIR Application for a client. 我只是想为客户端更新AIR应用程序。 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. 但是,当更新框架(我正在使用ApplicationUpdaterUI)下载了AIR文件并要安装时,它表示AIR文件已损坏。 When i'm installing the downloaded file (copied it from the #ApplicationUpdate dir) by hand everything works fine. 当我手动安装下载的文件(从#ApplicationUpdate目录复制后)时,一切正常。 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 使用Flex 4.0编译的Adobe AIR 2.0.2.12610 App

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:20] 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. 不过,我不知道为什么现在看来这会中断air应用程序。

很难说,但似乎是当前的AIR版本存在错误,无论如何都要检查一下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM