4 Replies Latest reply on Apr 6, 2011 9:45 AM by MSPMarathon

    Opening a Flex Desktop Application with a Flex webapp

    MSPMarathon Level 1

      I have been searching for a while on how to open my desktop application from my web app and cannot seem to figure out what my pubID is or if how to get it to work if I do not have a publisher ID.  I found this and implemented it. http://livedocs.adobe.com/flex/3/html/help.html?content=app_launch_1.html I can get airSWL.getStatus to return "installed" fine so that tells me I have my code correct.  I have tried the pubID as "" and " " as I saw on another forum without success.  Below is a copy of my Install.log when my application was ran through flash builder 4 and it worked.  NOTE:This is not as an exported as a project and signed yet, so that is probably why it has pubID ''.  Any information on the topic would be would help a bunch.  Thank you!

       

      [2011-04-04:09:58:08] Bootstrapper begin (Win:version 2.0.2.12610)
      [2011-04-04:09:58:08] Installed runtime located (2.6.0.19120)
      [2011-04-04:09:58:08] Launching application installer: "Adobe AIR Application Installer.exe" "C:\Users\PATH..."
      [2011-04-04:09:58:08] Application Installer begin with version 2.6.0.19120 on Windows 7 x86
      [2011-04-04:09:58:08] Commandline is: C:\Users\PATH...

      [2011-04-04:09:58:08] Installed runtime (2.6.0.19120) located at c:\Program Files (x86)\Common Files\Adobe AIR
      [2011-04-04:09:58:09] Validating app in folder C:\Users\PATH...

      [2011-04-04:09:58:10] Application signature verified
      [2011-04-04:09:58:10] Unpackaging/validation complete
      [2011-04-04:09:58:10] No app located for appID 'com.msp.two' and pubID ''
      [2011-04-04:09:58:11] Starting app installation to C:\Program Files (x86). Installing app com.msp.two version 45 08_19_10 Beta using the source file at file:///C:/Users/PATH...

      [2011-04-04:09:58:11] Installing msi at C:\Users\PATH...\setup.msi with guid {4AC78ED4-ACAF-88AA-6061-4628B2CC0749}
      [2011-04-04:09:58:13] Launching subprocess with commandline C:\Program Files (x86)\PATH...

      [2011-04-04:09:58:13] Application Installer end with exit code 0
      [2011-04-04:09:58:13] Application installer success
      [2011-04-04:09:58:13] Bootstrapper success

        • 1. Re: Opening a Flex Desktop Application with a Flex webapp
          MSPMarathon Level 1

          Also here is the Install.log from when I try to open the application from my online flex project using airSWF.launchApplication(appID, pubID, arguments);

           

          [2011-04-04:15:27:01] Application Installer begin with version 2.6.0.19120 on Windows 7 x86
          [2011-04-04:15:27:01] Commandline is: -playerVersion=10,1,82,76 -sandboxType=remote -securityDomain=airdownload.adobe.com -https=false -fromUserEvent=true -- -launch com.msp.two
          [2011-04-04:15:27:01] Installed runtime (2.6.0.19120) located at c:\Program Files (x86)\Common Files\Adobe AIR
          [2011-04-04:15:27:01] Application Installer end with exit code 0

          • 2. Re: Opening a Flex Desktop Application with a Flex webapp
            MSPMarathon Level 1

            After two days of research and getting localConnection to work, just to realize the application has to be running in order to pass variables to it with localConnection.  I realized that I set <allowBroswerInvocation> to true in my air application, but forgot to uncomment it in the descriptor file.  Extremely upsetting..... I can now get the airSWF.getApplicationVersion() to return the correct version number, but am still having problems with the airSWF.launchApplication() since it hard to debug, and just doesnt do anything.  Below is the code in the Install.log after running the launchApplication() function  I am still working on it and will post my progress.  Any help would be greatly appreciated, thank you.

             

            [2011-04-05:12:20:21] Application Installer begin with version 2.6.0.19120 on Windows 7 x86
            [2011-04-05:12:20:21] Commandline is: -playerVersion=10,1,82,76 -sandboxType=remote -securityDomain=airdownload.adobe.com -https=false -fromUserEvent=true -- -launch com.msp.two -- launchFromBrowser
            [2011-04-05:12:20:21] Installed runtime (2.6.0.19120) located at c:\Program Files (x86)\Common Files\Adobe AIR
            [2011-04-05:12:20:26] Application Installer end with exit code 0

            • 3. Re: Opening a Flex Desktop Application with a Flex webapp
              MSPMarathon Level 1

              I finally figured it out, I was installing the desktop version using the native installer.  I did not see this documented anywhere so hopefully this will help someone else along the way.  It is not supported for extended desktop applications (applications installed with a native installer).

              • 4. Re: Opening a Flex Desktop Application with a Flex webapp
                MSPMarathon Level 1

                Does anyone know if there is a way around this?