Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Adobe AIR / ADT - control over output executable

Posted on 2011-03-09
3
Medium Priority
?
307 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

618 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