6 Replies Latest reply on Jun 22, 2010 10:41 PM by neh@adobe

    AIR 2 Linux .rpm - breaks with updated software builds

    Lydia.Auzenne

      Hello Everyone,

       

      We are bundling the AIR 2 .rpm installer in our software builds for use on RedHat 5.x using the following code:

       

      if [ -x "/usr/bin/Adobe AIR Application Installer" ]
                then
                     "/usr/bin/Adobe AIR Application Installer" -silent -eulaAccepted -desktopShortcut -programMenu -location $dest_dir/help $src_code_dir/Help.air

       

      Problem:

      • On a fresh install, everything comes up roses.
      • The problem occurs on subsequent installs of software builds. When I install an updated software build (that includes the above code), AIR does not install "failed due to bad configuration"and the AIR file is unavailable and grayed out in the software (though it works fine on fresh installs).

        Fix Attempts:

        • When I deleted the AIR file from the previous build and tried to install a build it did not work, "failed consult log".
        • When I deleted the AIR installer via Package Manager then installed a subsequent build, the AIR file installed and was accessible from the software. But it deleted exisiting AIR files on my desktop that were not affiliated with the software build.

        Questions:

        1. What can I do to get AIR files from subsequent builds (that include the above code for the AIR 2 .rpm) to work in the software?
        2. If the AIR installer needs to be removed prior to a subsequent installation, how can I remove the installer while protecting local AIR files that are not affiliated with the software.

         

        Thanks,

        Lydia

         

          • 1. Re: AIR 2 Linux .rpm - breaks with updated software builds
            sanika Kulshreshtha Adobe Employee

            1. What can be done to get the subsequent builds (that include the above code for the AIR 2 .rpm) to work in our software builds?

             

             

             

            I assume you are compiling your code again, and generating a new help.air. Are you using the same certificate to sign the application? If you want the installer to recognize help.air as already installed, you must use the same certificate to sign the application. Also, Could you please attach Install.log created at $HOME/.appdata/Adobe/AIR/Logs/.

             

             

            2. If the AIR installer needs to be removed prior to the build installation, how can we remove the installer while protecting AIR files (not affiliated with our sw build) that already exist on the local files?

            AIR runtime need not be uninstalled before installing a new version of an existing application. AIR applications have a dependency on AIR runtime, and that it why package manager removed the AIR applications when you uninstalled the runtime. Though it is not recommended, you can keep the applications and remove the AIR runtime using "rpm -e --nodeps adobeair".

             

            Thanks!

            Sanika

            • 2. Re: AIR 2 Linux .rpm - breaks with updated software builds
              Lydia.Auzenne Level 1

               

               

              Hi Sanika,


              Yes, I would like to update the AIR application without prior having to remove the installer. Though the content of the help.air is modified, the name and certificate remain the same.


              In our sw builds, if the AIR installer was not removed prior to the new build installation the following error would occur:

              [Adobe AIR Application Installer:15792][INFO] UI SWF load is complete
              [Adobe AIR Application Installer:15792][INFO] UI initialized
              [Adobe AIR Application Installer:15792][INFO] Unpackaging to /tmp/FlashTmp.Oleg5M
              [Adobe AIR Application Installer:15792][INFO] unpackaging/validation is complete
              [Adobe AIR Application Installer:15792][INFO] application is bound to this version of the runtime
              [Adobe AIR Application Installer:15792][INFO] app id Lydia
              [Adobe AIR Application Installer:15792][INFO] pub id 4C048E4186AA3E2F3F9022DED9591FFABED27157.1
              [Adobe AIR Application Installer:15792][INFO] Application located at /opt
              [Adobe AIR Application Installer:15792][INFO] bad configuration for silent install or update
              [Adobe AIR Application Installer:15792][INFO] starting cleanup of temporary files
              [Adobe AIR Application Installer:15792][INFO] application installer exiting

               

               

              When I delete the AIR installer prior to a build installation, I am able to successfully install the installer and application:

              [Adobe AIR Application Installer:18787][INFO] Starting silent app install of file:///rdvnmr/.g_vj_2010-04-21/code/Help.air
              [Adobe AIR Application Installer:18787][INFO] UI SWF load is complete
              [Adobe AIR Application Installer:18787][INFO] UI initialized
              [Adobe AIR Application Installer:18787][INFO] Unpackaging to /tmp/FlashTmp.Zqrown
              [Adobe AIR Application Installer:18787][INFO] unpackaging/validation is complete
              [Adobe AIR Application Installer:18787][INFO] application is bound to this version of the runtime
              [Adobe AIR Application Installer:18787][INFO] app id Lydia
              [Adobe AIR Application Installer:18787][INFO] pub id 4C048E4186AA3E2F3F9022DED9591FFABED27157.1
              [Adobe AIR Application Installer:18787][INFO] Application not located
              [Adobe AIR Application Installer:18787][INFO] creating native installer in: /tmp/FlashTmp.udru51
              [Adobe AIR Application Installer:18787][INFO] native installer creation complete
              [Adobe AIR Application Installer:18787][INFO] Starting install
              [Adobe AIR Application Installer:18787][INFO] using conversion output in /tmp/FlashTmp.udru51/setup.deb
              [Adobe AIR Application Installer:18787][INFO] Beginning install
              [Adobe AIR Application Installer:18787][INFO] Installing package ...
              [Adobe AIR Application Installer:18787][INFO] Execution complete; beginning commit phase
              [Adobe AIR Application Installer:18787][INFO] Commit complete
              [Adobe AIR Application Installer:18787][INFO] starting cleanup of temporary files
              [Adobe AIR Application Installer:18787][INFO] application installer exiting

               

              Thanks!

              Lydia

               

              • 3. Re: AIR 2 Linux .rpm - breaks with updated software builds
                sanika Kulshreshtha Adobe Employee

                Hi Lydia,

                 

                Unfortunately, you cannot use the silent installer option to update an installed AIR application. This is because the AIR installer cannot determine whether the version to be installed is newer than the installed version, and it would pose a security risk to downgrade the application. Your only option is to uninstall the application and install it again.

                 

                Hope that helps.

                Thanks!

                Sanika

                • 4. Re: AIR 2 Linux .rpm - breaks with updated software builds
                  Lydia.Auzenne Level 1

                  Hi Sanika,


                  Is there an existing command line invocation to uninstall the AIR application?

                   

                  Lydia

                  • 5. Re: AIR 2 Linux .rpm - breaks with updated software builds
                    Lydia.Auzenne Level 1

                    Hi Sanika,

                     

                    Is there a command line invocation to uninstall the AIR application?

                     

                    Lydia

                    • 6. Re: AIR 2 Linux .rpm - breaks with updated software builds
                      neh@adobe Level 3

                      Yes. AIR applications are installed as native packages and can be uninstalled like any other

                      native application.

                      You can find the package name of your application in the following ways using the command line:

                       

                      1)  rpm -qa | grep -i <your app name-- enter something you are sure of>

                       

                      2) ls /etc/opt/Adobe\ AIR/AIR\ Applications/1.0 lists all the installed AIR apps. You can locate the app you wish to uninstall from here.

                       

                      After you have located your application's native package name, you can uninstall it using rpm -e.

                       

                      - Neha