Adobe AIR / ADT - control over output executable
Posted on 2011-03-09
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!!