我正試圖檢查Windows中的用戶域名,並且需要本機進程支持。在AIR應用程序中,NativeProcess.isSupported和Updater.isSupported都可以爲true嗎?
在應用程序配置XML(xmlns="http://ns.adobe.com/air/application/2.6"
)我有
<supportedProfiles>extendedDesktop desktop</supportedProfiles>
當我運行與ADL進行一切正常的應用程序,但是當我試圖安裝應用程序(* .air包),我得到一個錯誤該本地進程不受支持。有趣的是,當我安裝編譯的* .exe文件時,安裝後我有本機進程支持。
但是* .exe安裝我有Updater.isSupported == false
,但是,當我用* .air包安裝時,我有Updater.isSupported == true
。
看起來像我正在安裝* .exe我有profile = extendedDesktop,但是當我使用* .air安裝包時,我使用profile = desktop。
但我需要兩者。有什麼辦法可以解決這個問題嗎?
編譯:
echo Creating air application
call g:\flex_sdk\bin\adt.bat -package -storetype pkcs12 -keystore mykey.p12 -storepass simple -tsa none news.air news-app.xml .
echo Compile exe
call g:\flex_sdk\bin\adt.bat -package -target native news.exe news.air