I’m building a desktop app using Flash Builder and I need it to run a .exe program. I downloaded and installed the latest AIR SDK, put it in my Flash Builder sdks folder and had my project use it. Now i don’t have any compiler errors, but:
if(NativeProcess.isSupported)
{
var file:File = new File("C:\Torres.exe");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);
}
I checked and it just never goes inside the if block. Why wouldn’t nativeprocess be supported? Any ideas?
Add this
to your app’s manifest file. Using NativeProcess requires extended rights.
The article is likely to be helpful: http://www.adobe.com/devnet/air/flex/articles/air_screenrecording.html