Package AIR Application include serial key list

Hi all,
I just finished my AIR application. Now, I want to distribution my app but I don't know how to package to .air file inculde serial key (it's mean to install my app, user must have serial key).
I searched on google but have no link satisfying.
Please help me.
Thanks,
ndt

Hi Anton Azarov,
"trial via instant connection to the internet" I think it's the best solution but if using it, user have to connect internet when run app (It's so inconvenience)
Anyway, thanks you so much,
Thanks,
ndt

Similar Messages

  • Packaging AIR application with ant fails, Packaging AIR application inside IntelliJ works

    Hi,
    I can package AIR application (package type ad-hoc distribution) inside IntelliJ (from Build menu)
    but when I try with my ant build, it encounters an error running the adt command
    Is there a way to have more details on the error? At the moment, it's just a Java returned:2 error.
    I've copied my ant config files below.
    Any ideas anyone on where the problem could lie or how to debug it?
    THANKS!
    Note: I have no issue with the package debug target, be it via IntelliJ or my ant build.
    Build.xml
    <project name="headr" default="package-application-debug-interpreter" basedir="../">
              <property file="build/build.properties" />
              <property name="FLEX_HOME" value="${flexsdk.dir}" />
              <taskdef resource="flexTasks.tasks" classpath="${flexsdk.dir}/ant/lib/flexTasks.jar" />
              <target name="clean" description="deletes everything in build folder">
                        <echo message="Removing build directory contents..." />
                        <delete includeemptydirs="true" quiet="false">
                                  <fileset dir="${build.dir}" />
                        </delete>
              </target>
              <target name="perform-file-copy">
                        <mkdir dir="${build.dir}" />
                        <echo message="Copy files to output dir: ${build.dir}" />
                        <copy file="src/HeadrApplication-app.xml" todir="${build.dir}" />
                        <replace file="${build.dir}/HeadrApplication-app.xml" token="[This value will be overwritten by Flash Builder in the output app.xml]" value="out/HeadrApplication.swf" />
              </target>
              <target name="compile" depends="clean,perform-file-copy">
                        <mxmlc file="src/HeadrApplication.as" output="${build.dir}/HeadrApplication.swf" locale="en_US" accessible="false" actionscript-file-encoding="UTF-8" static-rsls="true" configname="airmobile" debug="${debug}" failonerror="true" maxmemory="1024m" fork="true" swf-version="17">
                                  <load-config filename="${flex_config}" append="true" />
                        </mxmlc>
              </target>
              <target name="pack-application" depends="compile">
                        <java jar="${adt.jar}" fork="true" failonerror="true">
                                  <arg value="-package" />
                                  <arg value="-target" />
                                  <arg value="${target}" />
                                  <arg value="-provisioning-profile" />
                                  <arg value="${provisioning-profile}" />
                                  <arg value="-storetype" />
                                  <arg value="pkcs12" />
                                  <arg value="-keystore" />
                                  <arg value="${keystore}" />
                                  <arg value="-storepass" />
                                  <arg value="${storepass}" />
      <arg value="-extdir" />
      <arg value="ane/" />
                                  <arg value="${build.dir}/HeadrApplication.ipa" />
                                  <arg value="${build.dir}/HeadrApplication-app.xml" />
                                  <arg value="${build.dir}/HeadrApplication.swf" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="Default.png" />
      <arg value="-C" />
      <arg value="src/" />
      <arg value="[email protected]" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="icons/." />
                                  <arg value="data/." />
                        </java>
              </target>
              <target name="pack-application-debug" depends="compile">
                        <java jar="${adt.jar}" fork="true" failonerror="true">
                                  <arg value="-package" />
                                  <arg value="-target" />
                                  <arg value="${target}" />
                                  <arg value="-connect" />
                                  <arg value="-provisioning-profile" />
                                  <arg value="${provisioning-profile}" />
                                  <arg value="-storetype" />
                                  <arg value="pkcs12" />
                                  <arg value="-keystore" />
                                  <arg value="${keystore}" />
                                  <arg value="-storepass" />
                                  <arg value="${storepass}" />
      <arg value="-extdir" />
      <arg value="ane/" />
                                  <arg value="${build.dir}/HeadrApplication.ipa" />
                                  <arg value="${build.dir}/HeadrApplication-app.xml" />
                                  <arg value="${build.dir}/HeadrApplication.swf" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="Default.png" />
      <arg value="-C" />
      <arg value="src/" />
      <arg value="[email protected]" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="icons/." />
                                  <arg value="data/." />
                        </java>
              </target>
              <target name="package-application-debug-interpreter">
                        <antcall target="pack-application-debug">
                                  <param name="debug" value="true" />
                                  <param name="flex_config" value="build/app-config-device-debug.xml" />
                                  <param name="target" value="ipa-debug-interpreter" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxx" />
                        </antcall>
              </target>
              <target name="package-application-debug">
                        <antcall target="pack-application-debug">
                                  <param name="debug" value="true" />
                                  <param name="flex_config" value="build/app-config-device-debug.xml" />
                                  <param name="target" value="ipa-debug" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxx" />
                        </antcall>
              </target>
              <target name="package-application-adhoc">
                        <antcall target="pack-application">
                                  <param name="debug" value="false" />
                                  <param name="flex_config" value="build/app-config-device.xml" />
                                  <param name="target" value="ipa-ad-hoc" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxxx" />
                        </antcall>
              </target>
              <target name="package-application-appstore">
                        <antcall target="pack-application">
                                  <param name="debug" value="false" />
                                  <param name="flex_config" value="build/app-config-device.xml" />
                                  <param name="target" value="ipa-app-store" />
                                  <param name="provisioning-profile" value="ios_profiles/TODO" />
                                  <param name="keystore" value="ios_profiles/TODO" />
                                  <param name="storepass" value="TODO" />
                        </antcall>
              </target>
              <target name="launch-application">
                        <exec executable="${adl.exe}">
                                  <arg value="bin-debug/HeadrApplication-app.xml" />
                                  <arg value="-profile mobileDevice" />
                        </exec>
              </target>
    </project>
    app-config-device.xml
    <?xml version="1.0"?>
    <flex-config xmlns="http://www.adobe.com/2006/flex-config">
              <compiler>
                        <include-libraries append="true">
                                  <library>../libs/swc/robotlegs-framework-v1.5.2.swc</library>
                                  <library>../libs/swc/greensock-as3-v11.693.swc</library>
                                  <library>../libs/swc/GraphAPI_Mobile_1_8_1.swc</library>
                                  <library>../libs/swc/MonsterDebuggerMobile-v3.0.2.swc</library>
                <library>../libs/swc/TheMiner_en_v1_3_10.swc</library>
                <library>../libs/swc/analytics-v1.1.319.swc</library>
                <library>../libs/swc/assets.swc</library>
                        </include-libraries>
                        <source-path append="true">
                <path-element>../../corelib/src/</path-element>
                <path-element>../../corelib/test/</path-element>
                <path-element>../../corelib/libs/src/</path-element>
                                  <path-element>../libs/src/</path-element>
                        </source-path>
                        <external-library-path append="true">
                <!-- path-element>../ane/com.headr.HeadrNativeExtensions.ane</path-element -->
                <path-element>../ane/com.milkmangames.extensions.GoViral.ane</path-element>
                        </external-library-path>
                        <debug>false</debug>
                        <define>
        <name>CONFIG::debugging</name>
        <value>false</value>
                        </define>
    <define>
        <name>CONFIG::simulator</name>
        <value>false</value>
    </define>
              </compiler>
    </flex-config>

    You may want to try using the settings used by Flash Builder to package the application, more details of which can be found at:http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-buil der-flex.html
    Update your ANT script with these, and try again.

  • Is it possible to packaging Air application for Mac AppStore with Air 3?

    Is it possible to packaging Air application for Mac AppStore with Air 3 ?

    Anyone from adobe? Anyone?
    Also I was wondering what could prevent the window from going
    away when user uses windows "show desktop" command, or perhaps
    there is a way to restore it right away?
    thanks.

  • Big ANE causes java.lang.OutOfMemoryError when packaging Air application

    Hi,
    I'm working on an Air mobile game that uses ANE on iOS and Android. I'm in the process of creating a new ANE and face a problem on the Android side.
    My ANE requires an external framework (Burstly, http://burstly.com). If I just link the Android project to Burstly's .jar file, I get errors in "adb logcat", like:
    I/dalvikvm(16074): Could not find method com.burstly.lib.BurstlySdk.init, referenced from method com.freshplanet.burstly.functions.InitBurstlyFunction.call
    In order to include Burstly's files in my own .jar, I unzip Burstly's .jar file and repackage them with my compiled code in a unique .jar (following advice on http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries).
    Problem: Burstly's SDK includes thousands of files. It doesn't create any trouble when packaging the ANE, but when I try to package the Air application, I get the following error:
    dx tool failed:
    UNEXPECTED TOP-LEVEL ERROR:
    java.lang.OutOfMemoryError: Java heap space
              at com.android.dx.util.IntList.<init>(IntList.java:87)
              at com.android.dx.rop.code.RopMethod.calcPredecessors(RopMethod.java:174)
              at com.android.dx.rop.code.RopMethod.labelToPredecessors(RopMethod.java:95)
              at com.android.dx.ssa.back.IdenticalBlockCombiner.process(IdenticalBlockCombiner.java:74)
              at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:132)
              at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:76)
              at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:103)
              at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
              at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
              at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
              at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
              at com.android.dx.command.dexer.Main.processClass(Main.java:299)
              at com.android.dx.command.dexer.Main.processFileBytes(Main.java:278)
              at com.android.dx.command.dexer.Main.access$100(Main.java:56)
              at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)
              at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
              at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
              at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
              at com.android.dx.command.dexer.Main.processOne(Main.java:247)
              at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
              at com.android.dx.command.dexer.Main.run(Main.java:139)
              at com.android.dx.command.dexer.Main.main(Main.java:120)
              at com.android.dx.command.Main.main(Main.java:89)
    I read that the solution to eliminate this error is to give Java the parameters "-Xms...M -Xmx...M", with "..." being a high-enough number. Note that I'm working on a machine with 8GB of RAM. I tried to package the app in command line to be able to pass these parameters:
    /usr/bin/java -Xms512M -Xmx4096M -jar "/Applications/Adobe Flash Builder 4.6/sdks/4.6.0air31/lib/adt.jar" -package -target apk -storetype pkcs12 -keystore [...].p12 Main.apk Main-app.xml Main.swf -extdir "/Users/alex/Documents/Adobe Flash Builder 4.6/.metadata/.plugins/com.adobe.flexbuilder.project.ui/ANEFiles/front-end-mobile/com.ado be.flexide.multiplatform.ios.platform"
    But when I run a "ps -ef | grep java", I can see that adt runs another Java program (dx) without transmitting my -Xms -Xmx parameters:
    /usr/bin/java -jar /Applications/Adobe Flash Builder 4.6/sdks/4.6.0air31/lib/android/bin/dx.jar --dex --output=/private/var/folders/t9/3kw74cx14nv2xg9tgmx9m1jc0000gp/T/b5757d93-1e93-439c-8f6d -c93e4933f6f1/outputDEX.dex [... bunch of jars]
    Any idea to solve this issue?
    Thanks
    Alex

    I solved my issue by setting the _JAVA_OPTIONS environment variable. (Note: there are two underscores)
    I added the following line to my .bash_profile:
    export _JAVA_OPTIONS="-Xms1024m -Xmx4096m -XX:MaxPermSize=512m"
    Now everytime a Java program is launched from the command line, I see the following message:
    Picked up _JAVA_OPTIONS: -Xms1024m -Xmx4096m -XX:MaxPermSize=512m
    And my application packaging runs just fine now.
    I still have an issue though: this trick solved the problem for packaging the app from the command line, but the _JAVA_OPTIONS are not picked up when packaging from Flash Builder, so it still crashes there.
    Note that my Adobe Flash Builder 4.6.ini contains the following options:
    -Xms512m
    -Xmx1676m
    -XX:MaxPermSize=512m
    -XX:PermSize=64m
    1676m is the highest number I can put before Flash Builder refuses to launch. I'm not sure if these parameters are actually passed to the VM that runs de dx.jar program, or if it's just for the ActionScript compiler. But anyway my app packaging still crashes in Flash Builder.
    If someone knows a way to force Flash Builder to pickup the _JAVA_OPTIONS set in the command line, let me know :-)
    Thanks
    Alex

  • Invalid Namespace when trying to package AIR application

    I am using a self-signed certificate when trying to package
    my application, but when I run the command to package it I get the
    following error: "Invalid namespace
    http://ns.adobe.com/air/application/1.0"
    Then it leaves a .tmp file in the directory where I ran the
    batch file containing the package statement.
    What should be done from here?

    Check which version of adt you are using. Sounds like you are
    using a beta release, which wouldn't recognize the final 1.0
    namespace.
    Oliver Goldman | Adobe AIR Engineering

  • Packaging air application error

    dear all
    i have an air application and it has been runned and
    debugged successfully but at the packaging step to obtain .air file
    i couldn't run it . the error the appeared was as following :
    (The application could not be installed because the AIR file
    is damaged. Try obtaining a new AIR file from the application
    author.)
    so please help me in this problem as possible.
    thanks

    Hi,
    Even if the application may run in the development mode, some
    fail to run in the production mode because there might be errors in
    your "youfile-app.xml" file. Please check all the tags in the
    app.xml file and rebuild the application and it works fine.
    Regards,
    Code.

  • Packaging AIR Application

    Is it possible to include AIR runtime redistributable also in the package, so user will not have to download AIR before installing application? Can we package it in EXE or DMG files? I am using AIR 3.6 with Flex 4.6.

    Yes this is called packaging the Captive Runtime.  It is available as one of the Export Release Build options in Flash Builder.  With ADT, use the -bundle switch:
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f709e16db131e43659b9-8000.html

  • Package AIR applications

    This question was posted in response to the following article: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-13a250c812e8e9b5533-7ff1 .html

    There are several references on this page to the "Flex Build Packaging" page in the Project Properties dialog. These are all wrong: there is no longer a page with that name, it's now called "Actionscript Build Packaging". Thanks Adobe for playing musical chairs with the names of all the different parts of your technology ecosystem...
    More importantly THERE ARE ERROR MESSAGES in Flash Builder that instruct you to refer to this page, and it took  me hours to realize what page they were actually referring to! Please update this Adobe.

  • All Adobe AIR Applications stopped function today, what happened?

    I'm running OS X 10.6.3, all of my Adobe AIR applications stopped functioning today.
    Here is a list of all the Adobe AIR applications that I use...
    http://imgur.com/CNXz5
    Now here is the error that each of them have been giving me as of today...
    http://imgur.com/8R2Nb
    http://imgur.com/sbgPL
    http://imgur.com/yFQng
    I have changed absolutely nothing with any of these apps, or Adobe AIR in a very long time... I actually haven't even installed anything to my knowledge in a few weeks.
    I have tried reinstalling all of these apps, reinstalling Adobe AIR... everything. I've tried everything.
    Can anyone assist me in figuring out what is wrong? Thanks in advance for any help.

    I just put those commands through terminal and here is what I got...
    Last login: Thu May 27 10:27:19 on console
    ChrisLaBontysMacbook:~ macbook$ cat /Applications/Utilities/Adobe\ AIR\ Application\ Installer.app/Contents/Info.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        <key>CFBundleAllowMixedLocalizations</key>
        <true/>
        <key>CFBundleDevelopmentRegion</key>
        <string>English</string>
        <key>CFBundleExecutable</key>
        <string>Adobe AIR Application Installer</string>
        <key>CFBundleGetInfoString</key>
        <string>Adobe AIR 1.5.3</string>
        <key>CFBundleIconFile</key>
        <string>Adobe AIR</string>
        <key>CFBundleIdentifier</key>
        <string>com.adobe.air.ApplicationInstaller</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>1.5.3</string>
        <key>CFBundleVersion</key>
        <string>1.5.3.9130</string>
        <key>LSBackgroundOnly</key>
        <true/>
        <key>LSMinimumSystemVersion</key>
        <string>10.4.9</string>
        <key>NSHumanReadableCopyright</key>
        <string>Copyright © 2007-2009 Adobe Systems Inc.</string>
        <key>CFBundleDocumentTypes</key>
        <array>
          <dict>
            <key>CFBundleTypeExtensions</key>
            <array>
              <string>air</string>
            </array>
            <key>CFBundleTypeIconFile</key>
            <string>Adobe AIR Installer Package.icns</string>
            <key>CFBundleTypeMIMETypes</key>
            <array>
              <string>application/vnd.adobe.air-application-installer-package+zip</string>
            </array>
            <key>CFBundleTypeName</key>
            <string>com.adobe.air.InstallerPackage</string>
            <key>CFBundleTypeRole</key>
            <string>Viewer</string>
          </dict>
        </array>
      </dict>
    </plist>ChrisLaBontysMacbook:~ macbook$
    ChrisLaBontysMacbook:~ macbook$
    ChrisLaBontysMacbook:~ macbook$
    ChrisLaBontysMacbook:~ macbook$
    ChrisLaBontysMacbook:~ macbook$
    ChrisLaBontysMacbook:~ macbook$
    ChrisLaBontysMacbook:~ macbook$ head /Applications/RedditAddictLite.app/Contents/Resources/META-INF/AIR/application.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <application xmlns="http://ns.adobe.com/air/application/1.0">
      <filename>RedditAddictLite</filename>
      <description>For power redditors: Track your karma scores in real-time -- with graphs!</description>
      <customUpdateUI>false</customUpdateUI>
      <name>RedditAddict Lite</name>
      <id>com.tritelife.redditaddictlite</id>
      <version>1.0</version>
      <allowBrowserInvocation>true</allowBrowserInvocation>
      <initialWindow>
    ChrisLaBontysMacbook:~ macbook$

  • Support system tray icon of Air application

    Hi All,
    I developed a widget with flash builder 4 and I exported all the project in AIR application. Then, I packaged AIR application in .exe file for Windows, and dmg file for MAC. My application works correctly for both of OS.
    When I launch application on OS Windows, an image on system tray (for my application a socceer ball) appears. On the other side, on OS MAC my icon appears, but after 3 or 4 seconds it disappears and it is replaced with an other icon (probably it's a default icon of mac for this kind of application?) ...
    What can I do? Thanks in advance, regards
    Gianni

    I attached files reporting images of icon on system tray. I didn't set any option on app descriptor, I used SystemTrayIcon and DockIcon APIs.
    Anyway I attach part of my application code ...
    windowComplete event of WindowedApplication is handled by function preInit () ...
                private function onWindowActivate():void
                    if (!this.windowActivateRequest)
                        this.dock();
                private function onInvoke( event:InvokeEvent ):void
                    if( event.reason == InvokeEventReason.LOGIN )
                        //do background processing...
                        trace( "Running in background..." );
                        this.windowActivateRequest = false;
                        this.dock();                   
                    else
                        trace("Running on screen");
                        this.windowActivateRequest = true;
                        if (this.stage != null)
                            this.stage.nativeWindow.activate();   
                public function dock(event:Event = null):void
                    stage.nativeWindow.visible = false;
                    var imgObj:BitmapAsset = new trayIcon() as BitmapAsset;
                    var bitmampDataTmp:BitmapData = imgObj.bitmapData;
                    var arrayTmp:Array = new Array();
                    arrayTmp.push(bitmampDataTmp);
                    NativeApplication.nativeApplication.icon.bitmaps = arrayTmp;
                public function undock(event:Event = null):void
                    this.windowActivateRequest = true;
                    stage.nativeWindow.visible = true;
                    NativeApplication.nativeApplication.icon.bitmaps = [];
                private function preInit():void
                    try
                        NativeApplication.nativeApplication.startAtLogin = true;
                    catch ( e:Error )
                        trace( "Cannot set startAtLogin:" + e.message );
                    NativeApplication.nativeApplication.addEventListener( InvokeEvent.INVOKE, onInvoke );
                    if(NativeApplication.supportsDockIcon)
                        var dockIcon:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;
                        NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,undock);
                        dockIcon.menu = createIconMenu();
                    }else{
                        if (NativeApplication.supportsSystemTrayIcon){
                            var sysTrayIcon:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;
                            sysTrayIcon.tooltip = "Stopwatch";
                            sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
                            sysTrayIcon.menu = createIconMenu();   
                private function createIconMenu():NativeMenu
                    var iconMenu:NativeMenu = new NativeMenu();
                    var exitCommand: NativeMenuItem = iconMenu.addItem(new NativeMenuItem("Esci"));
                    exitCommand.addEventListener(Event.SELECT, chiudi);
                    return iconMenu;
    trayIcon is name of .png which represent ball image ...  
    I try to summarize ...In MAC OS DockIcon isn' t represented by ball image ...In Windows OS everything works.
    I'm sorry for disturbing you but I hope that everything is clear.
    Thanks

  • What IDE do I use to develop Adobe AIR applications?

    You can leverage any existing IDE that you already use for Flash, Flex, or HTML/JavaScript development. Adobe AIR does not require a specific IDE; however, Adobe AIR is integrated into Adobe Creative Suite, Flash Professional, and Flash Builder (formerly known as Flex Builder).
    We also provide a set of command line tools that allow developers to test and package AIR applications from the command line. These tools can be found in the Adobe AIR SDK.
    Basically, you can use any tool that outputs SWF or HTML files.

    Here's one.
    The thunderbolt port doubles as a Mini DisplayPort.
    Mind you, it's just an adapter. You will need an HDMI cable to span the distance from the computer to the TV.

  • Packaging an AIR application in a native installer

    Hi! I'm trying to create a native installer of my AIR Application,  because (I think) it's the only way make the native processes working.  But I have a problem: I used the following command to pack: "adt  -package -storetype pkcs12 -keystore myCert.pfx -target native  -storetype pkcs12 -keystore myCert.pfx myApp.exe myApp-app.xml", but I get  the error: "File myApp-app.xml is not a valid AIRI or AIR file". In the  Flash Builder I use as additional compiler arguments:  "-locale=pt_PT,en_UK,fr_FR,de_DE,ro_RO,es_ES  -allow-source-path-overlap=true -source-path=assets" and I add the  source path "src/locale/{locale}/". What is the sintax for packing my  AIR application in a native installer? Thanks in advance.

    Hi again! Thanks for the reply. I based myself on the link to see what command syntax I should use to pack my Air Windowed Application and it was the command that I presented in the previous post.
    adt version "2.0.1.12090"
                                                  My Descriptor File
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.0">
    <!-- Adobe AIR Application Descriptor File Template.
        Specifies parameters for identifying, installing, and launching AIR applications.
        xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0
                The last segment of the namespace specifies the version
                of the AIR runtime required for this application to run.
        minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                the application. Optional.
    -->
        <!-- A universally unique application identifier. Must be unique across all AIR applications.
             Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
        <id>com.MyCompany.Application</id>
        <!-- Used as the filename for the application. Required. -->
        <filename>Production Control System</filename>
        <!-- The name that is displayed in the AIR application installer.
             May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <name>Production Control System</name>
        <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
        <version>2.1.3</version>
        <!-- Description, displayed in the AIR application installer.
             May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <!-- <description></description> -->
        <!-- Copyright information. Optional -->
        <!-- <copyright></copyright> -->
        <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
        <!-- <publisherID>My Company</publisherID> -->
        <!-- Settings for the application's initial window. Required. -->
        <initialWindow>
            <!-- The main SWF or HTML file of the application. Required. -->
            <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
            <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
            <!-- The title of the main window. Optional. -->
            <!-- <title></title> -->
            <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
            <systemChrome>none</systemChrome>
            <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
            <transparent>true</transparent>
            <!-- Whether the window is initially visible. Optional. Default false. -->
            <!-- <visible></visible> -->
            <!-- Whether the user can minimize the window. Optional. Default true. -->
            <!-- <minimizable></minimizable> -->
            <!-- Whether the user can maximize the window. Optional. Default true. -->
            <!-- <maximizable></maximizable> -->
            <!-- Whether the user can resize the window. Optional. Default true. -->
            <!-- <resizable></resizable> -->
            <!-- The window's initial width in pixels. Optional. -->
            <!-- <width></width> -->
            <!-- The window's initial height in pixels. Optional. -->
            <!-- <height></height> -->
            <!-- The window's initial x position. Optional. -->
            <!-- <x></x> -->
            <!-- The window's initial y position. Optional. -->
            <!-- <y></y> -->
            <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
            <!-- <minSize></minSize> -->
            <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
            <!-- <maxSize></maxSize> -->
        </initialWindow>
        <!-- We recommend omitting the supportedProfiles element, -->
        <!-- which in turn permits your application to be deployed to all -->
        <!-- devices supported by AIR. If you wish to restrict deployment -->
        <!-- (i.e., to only mobile devices) then add this element and list -->
        <!-- only the profiles which your application does support. -->
        <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
        <supportedProfiles>extendedDesktop</supportedProfiles>
        <!-- The subpath of the standard default installation location to use. Optional. -->
        <!-- <installFolder></installFolder> -->
        <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
        <!-- <programMenuFolder></programMenuFolder> -->
        <!-- The icon the system uses for the application. For at least one resolution,
             specify the path to a PNG file included in the AIR package. Optional. -->
        <!-- <icon>
            <image16x16></image16x16>
            <image32x32></image32x32>
            <image48x48></image48x48>
            <image128x128></image128x128>
        </icon> -->
        <!-- Whether the application handles the update when a user double-clicks an update version
        of the AIR file (true), or the default AIR application installer handles the update (false).
        Optional. Default false. -->
        <customUpdateUI>true</customUpdateUI>
        <!-- Whether the application can be launched when the user clicks a link in a web browser.
        Optional. Default false. -->
        <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
        <!-- Listing of file types for which the application can register. Optional. -->
        <!-- <fileTypes> -->
            <!-- Defines one file type. Optional. -->
            <!-- <fileType> -->
                <!-- The name that the system displays for the registered file type. Required. -->
                <!-- <name></name> -->
                <!-- The extension to register. Required. -->
                <!-- <extension></extension> -->
                <!-- The description of the file type. Optional. -->
                <!-- <description></description> -->
                <!-- The MIME content type. -->
                <!-- <contentType></contentType> -->
                <!-- The icon to display for the file type. Optional. -->
                <!-- <icon>
                    <image16x16></image16x16>
                    <image32x32></image32x32>
                    <image48x48></image48x48>
                    <image128x128></image128x128>
                </icon> -->
            <!-- </fileType> -->
        <!-- </fileTypes> -->
        <!-- iPhone/iPad -specific capabilities -->
        <!-- <iPhone> -->
            <!-- A list of plist key/value pairs to be added to the application Info.plist -->
            <!-- <InfoAdditions>
                <![CDATA[
                    <key>UIDeviceFamily</key>
                    <array>
                        <string>1</string>
                        <string>2</string>
                    </array>
                    <key>UIStatusBarStyle</key>
                    <string>UIStatusBarStyleBlackOpaque</string>
                    <key>UIRequiresPersistentWiFi</key>
                    <string>YES</string>
                ]]>
            </InfoAdditions> -->
        <!-- </iPhone> -->
    </application>

  • Error while installign AIR Application (invalid package signature errorID=5022)

    Hi All,
    I am new to Adobe AIR and facing error while Installing AIR application. This specially happens when in include a folder named "htmls" in the assets directory in my project.
    This folder have lots of html files and others folders. These file names have some special characters as well like ". & - _".
    However I can install the Application when I exclude this folder and everything works fine. Not able to find out the exact problem.
    Looking forward for help !!
    Log contents:
    .airappinstall
    failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
    starting cleanup of temporary files
    application installer exiting
    .airinstall
    App installer failed; exit code 7
    begin quitting

    You may have found a bug in the AIR installer or packager. Given that the signature is an XML file, the "&" character seems the most likely culprit.
    The only short-term workaround is to identify which characters cause the problem and avoid using it.
    You should avoid the following characters in any case, since these cannot be used in file names on all platforms:
    Character            Hexcode
    various     0x00 - x1F
    *           x2A
    "           x22
    :           x3A
    >           x3C
    <           x3E
    ?           x3F
    \           x5C
    |           x7C

  • Packaging AIRHelp .air file with AIR Application

    Hi,
    Has anyone had any experience packaging an AIRHelp project (generated by RoboHelp) with an AIR Application?  I want installation for our app to be simple as possible for the end user, and requiring them to install the help separately from the real AIR application seems to be complicated and error prone.  (In addition, ProductManager launch function cannot determine whether or not help has been installed, so there could be problems there.)
    Currently we are using a native installer for the AIR app. 
    Thanks in advance,
    -Tom

    Another thing I learned is that you might have the icon file embeded in the application somewhere and that removes it from the include in AIR package screen.That shows the same 303 error. See more detalis here : http://spy6.blogspot.com/2009/10/error-creating-air-file-303error-some.html

  • Java.lang.NullPointerException is thrown when packaging Adobe AIR application for iOS

    Hi All,
    https://bugbase.adobe.com/index.cfm?event=bug&id=3071298
    As per above link this bug resolve(latest build) but i am facing  Java.lang.NullPointerException is thrown when packaging Adobe AIR application for iOS, using the packaging tools.
    (for  inappPurchase Demo app --- i used below link code)
    http://code.google.com/p/in-app-purchase-air-ios/
    Thanks,
    Sunil Rana

    Hi Everyone,
    I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 
    Getting the same error.
    Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
            at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
            at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
            at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
    .java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    regards,
    Keith

Maybe you are looking for