Solved

Adobe AIR / ADT - control over output executable

Posted on 2011-03-09
3
291 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

823 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