Solved

Adobe AIR / ADT - control over output executable

Posted on 2011-03-09
3
285 Views
Last Modified: 2012-05-11
Hi I am a very experienced developer specialising in Flash ActionScript AS3.  I'm building an app for an exhibtion which runs on several client machines driving touch monitors on a wall matrix.  If the client is left for a while a screensaver triggers - and when it cuts in it needs simultaneously to trigger an executable which will notify another application on the network that the client is in screensaver mode. (there are other reasons why we can't use e.g. UDP or socket servers for this as we are working with other 3rd party software)

Have used flash.desktop.NativeProcess successfully and can run a test app in the Flash IDE which works fine and triggers the little external exe perfectly.  However the AIR app needs to be packaged using ADT to produce an executable installer in order for the app to be distributed.

 Have installed the AIR SDK and run ADT from the command line to produce a self certificate.  All works fine.  After much tinkering and googling have got ADT to output an executable installer.

Eureka!  I thought and was made up till I double clicked it and my Windows7 reports that the exe is in the wrong version - I guess it must be output as 32bit not 64 or something but I get the 'The version of this file is not compatible with the version of Windows you are running' message.  Has anyone else encountered this particular frustration and is there some kind of switch or other trick I am missing?  Do I have the wrong libraries installed somewhere?  What a nightmare! Your help would be greatly appreciated, experts!!
0
Comment
Question by:Deasil
3 Comments
 
LVL 2

Author Comment

by:Deasil
ID: 35094979
I have solved this now - there are two salient points if anyone wants to use the Flash IDE with Adobe AIR in this way.  Basically if your Air application is going to use flash.desktop.NativeProcess to call an external executable here are some pointers.

1) Within the IDE to run the code, you need to edit the <application>-app.xml to include the parameter:

  <supportedProfiles>extendedDesktop </supportedProfiles>

You can then use test movie within the IDE and it will all go fine.

2)When you want to use the AIR SDK to package your air installer together with the executable inside a windows installer, make sure you change that line to
  <supportedProfiles>desktop extendedDesktop </supportedProfiles>

3)  And this is the killer!
I downloaded and installed the latest updates from Adobe for my CS5 Professional installation and now there is an option in the air settings to create a Windows installer without having to use the Java app at all.

It looks to me like Adobe is building up to include application installers for other platforms so this is one to watch...

Sorry I couldn't award points on this one.  Hope this helps someone else!

D.
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 36321200
Question PAQ'd and stored in the solution database.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The goal of the tutorial is to teach the user how to how to record live broadcast.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now