Solved

Adobe AIR / ADT - control over output executable

Posted on 2011-03-09
3
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

737 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