I needed to start different AIR desktop applications from a single "Dispatcher" AIR desktop application and I had a hard time to understand how to do it. Trying different solutions didn't work. Finally I found different ways to do it.
The easier way is to use adobe.utils.ProductManager, it was tested on Windows.
Here is the code:
import adobe.utils.ProductManager;
private var pm:ProductManager = new ProductManager("airappinstaller");
private function launchMyApplication(myApplicationID:String):void
{
pm.launch("-launch " + myApplicationID);
}
About MyApplication:
It is Flex AIR Application and it has a folder META_INF/AIR; there is a file
application.xml
- You can find the Application ID in the tag "id"
- If you forget to set allowBrowserInvocation = true; the Application you are trying to launch will never start.