hi,
is it possible to launch an executable from within extension, as it is in a regular desktop AIR app?
Where you'd use code like this:
if(NativeProcess.isSupported)
{
var file:File = File.desktopDirectory;
file = file.resolvePath("myOtherExtension.zxp");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);
}
But in a desktop AIR app you'd need to add
<supportedProfiles>extendedDesktop desktop</supportedProfiles>
I just took a better look at your code.
It does not look like you are using NativeProcess correctly. NativeProcess is used to run a command line application (such as Extension Manager). You can not execute a zxp the way you are attempting.
If all you want to do is open the zxp in the default Extension Manager, just do this:
file.openWithDefaultApplication();
Harbs
North America
Europe, Middle East and Africa
Asia Pacific