We have a Flex 3.5/Air 2 application that uses native processes.
I exported my release build to MyApp.air and used ADT to create MyApp.exe.
As a test, I am calling the following function when I click some text on the main UI to be sure I am able to use native process in the extendedDesktop profiled app:
private function openFile():void
var testfile:File = new File("C:/procexp.exe");
When I install the app from MyApp.exe this works exactly how it should - procexp.exe runs. However, we will be distributing this app to clients "in the field" that will not necessarily have an Internet connection needed to upgrade/install Air 2.0. So, we need to use the bundled runtime installer.
I have downloaded the bundled runtime installer and set it up with our app following the instructions here:
Following those instructions, I can install Air 2 with the App if I reference MyApp.air in .airinstall.cfg. The problem is that native processes are not allowed unless you install from the exe. So, my test above fails. When I try to install Air 2 and my App referencing MyApp.exe in the .airinstall.cfg I get the following error:
"The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author."
I need to be able to do the sidecar installation with MyApp.exe. Is this possible, and if so, how do you set this up?
Have you packaged the AIR app into a Native .exe installer using ADT? Once you do this, sidecar installation of the AIR runtime is automatic.
Yeah, I did. But I didn't compile the app with ADT - pointing to the swf, the app.xml, selecting my assets, etc.. In Flash Builder I exported my .air release, then I used ADT to create a native .exe from the .air file.
Unfortuantely we don't have support for sidecar installs with native installers at this time. I've seen this come up before but when I searched the ideas.adobe.com site I couldn't find a specific feature request. We are aware that there is interest in this feature, but I'd like to encourage you to add a post to the ideas.adobe.com page and let others know so we can vote on it.