6 Replies Latest reply on Jul 28, 2010 11:01 AM by chris.campbell

    Silently installing adt packaged app?

    ArK_1 Level 1

      Hi there,

       

      I'm trying to silently install my air app (via the Adobe AIR Installer) as part of a meta-installer which installs other required elements into the install folder (telling the app to install to the same location as the rest of the files which are downloaded as required by user choice)

       

      This works fine with a .air file, but as soon as I package the air file into a native .exe, the silent install fails. (It must be packaged as I must use NativeProcess in the app)

       

      Testing via cmd has shown I can call the Native.exe with a -silent argument, and the app will silently install to its default location, but I cannot tell it to install to a specific directory as it doesn't work with a -location argument.

       

      Trying to run it through the Adobe AIR Installer.exe gives this log:

       

      [2010-07-23:15:41:52] Starting silent app install of file:///C:/Users/My User Name/Desktop/DAD.exe

      [2010-07-23:15:41:52] UI SWF load is complete

      [2010-07-23:15:41:52] UI initialized

      [2010-07-23:15:41:52] Unpackaging to C:\Users\My User Name\AppData\Local\Temp\fla3691.tmp

      [2010-07-23:15:41:52] failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="not an AIR file" errorID=0]

      [2010-07-23:15:41:52] starting cleanup of temporary files

      [2010-07-23:15:41:52] application installer exiting

      Any ideas?
      Adam

        • 1. Re: Silently installing adt packaged app?
          chris.campbell Adobe Employee

          Hi Adam,

          Sorry you're running into problems with the Native Installer.  As you've noticed, you can't run the native installer through the Adobe AIR Installer.exe.  The native installer is a stand alone package. 

           

          However, the -location argument should work.  If you have spaces in the path name you'll want to make sure you wrap the path in quotes.

           

          Is there an error message or exit code when running with -silent and -location?  Is the file installed into the default location regardless of the -location specified or does it just fail outright?

           

          Thanks,

          Chris

          • 2. Re: Silently installing adt packaged app?
            chris.campbell Adobe Employee

            I was just informed that we actually have a bug in this area (#2677272), but luckily there's a workaround.  If you manually escape the quotation marks in your extended -location path (ex. My_App.exe -silent -location "\"C:\Program Files\""), the -location should work.  Full details can be found in this post.

             

            Thanks,

            Chris

            1 person found this helpful
            • 3. Re: Silently installing adt packaged app?
              ArK_1 Level 1

              Hi Chris,

               

              Thanks for taking the time to try and help solve the problem.

               

              I have tried again using the methods you have suggested but the log file reports this now:

               

              native install.gif

               

               

              [2010-07-28:09:00:01] Bootstrapper begin (Win:version 2.0.2.12610)

              [2010-07-28:09:00:01] Installed runtime located (2.0.2.12610)

              [2010-07-28:09:00:01] Launching application installer: "Adobe AIR Application Installer.exe" -silent -location "C:\test" "C:\Users\ADAM\AppData\Local\Temp\AIR3986.tmp\DAD"

              [2010-07-28:09:00:02] Starting silent app install of file:///C:/Users/ADAM/AppData/Local/Temp/AIR3986.tmp/DAD

              [2010-07-28:09:00:02] UI SWF load is complete

              [2010-07-28:09:00:02] UI initialized

              [2010-07-28:09:00:02] Detected native app installer

              [2010-07-28:09:00:02] style being loaded from Resources/stylesNative.swf

              [2010-07-28:09:00:02] Validating the native package at file:///C:/Users/ADAM/AppData/Local/Temp/AIR3986.tmp/DAD

              [2010-07-28:09:00:04] unpackaging/validation is complete

              [2010-07-28:09:00:04] application is bound to this version of the runtime

              [2010-07-28:09:00:04] app id com.ibundle.dwdi.ui

              [2010-07-28:09:00:04] pub id

              [2010-07-28:09:00:04] Application located at C:\test

              [2010-07-28:09:00:04] bad configuration for silent install or update

              [2010-07-28:09:00:04] starting cleanup of temporary files

              [2010-07-28:09:00:04] application installer exiting

              [2010-07-28:09:00:04] Application installer failure (9)

              [2010-07-28:09:00:04] Bootstrapper failure (9)

               

              Do you have any idea what would cause this error which is not present if using the exact same command with the original air file instead of native exe?

               

              I am using Windows 7 64-bit if that makes any difference

              • 4. Re: Silently installing adt packaged app?
                ArK_1 Level 1

                Nevermind, it has now decided to work with the same command. It appears the problem was a previously installed version which wasn't fully uninstalled (despite the folder no longer being present)

                • 5. Re: Silently installing adt packaged app?
                  ArK_1 Level 1

                  Aha, it turns out I was experiencing the problem with quotes. My testing before used C:\Test and worked fine, then as soon as I tried to install to C:\Program Files\ it wouldn't - after escaping the quotes in the call, it now works, thanks! :]

                  • 6. Re: Silently installing adt packaged app?
                    chris.campbell Adobe Employee

                    Thanks for letting us know it worked!

                     

                    Chris