Dies ist die Grundlagen dessen, was ich habe:Wie erhalte ich Adobe AIR, um eine Anwendung mithilfe von JavaScript und dem Update-Framework zu aktualisieren?
var onError = function() { alert("error"); }
var appUpdater = new runtime.air.update.ApplicationUpdaterUI();
appUpdater.configurationFile = new air.File("app:/updateConfig.xml");
appUpdater.addEventListener(air.ErrorEvent.ERROR, onError);
appUpdater.initialize();
ich in allen geeigneten Rahmen Dateien geladen, die updateConfig.xml und der updateDescriptor.xml, und die URLs sind für einen lokalen Host-Instanz. Ich bekomme keine Fehler, und wenn ich die INITIALIZED UpdateEvent Eigenschaft aufruft, wird sie initialisiert.
My updateConfig.xml:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
<url>http://virtual.sandbox.com:81/updateDescriptor.xml</url>
<delay>0</delay>
<defaultUI>
<dialog name="checkForUpdate" visible="true" />
<dialog name="downloadUpdate" visible="true" />
<dialog name="downloadProgress" visible="true" />
<dialog name="installUpdate" visible="true" />
<dialog name="fileUpdate" visible="true" />
<dialog name="unexpectedError" visible="true" />
</defaultUI>
</configuration>
My updateDescriptor.xml:
<?xml version="1.0" encoding="utf-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
<version>1.1</version>
<url>http://virtual.sandbox.com:81/MyWidget.air</url>
<description><![CDATA[This is the latest version of the DOI Express Reorder widget.]]></description>
</update>
Anwendungsdeskriptor Version Knoten wird auf 1,0 gesetzt. Jede Hilfe wäre willkommen.