Restart code:
var app:WindowedApplication = WindowedApplication(FlexGlobals.topLevelApplication); var mgr:ProductManager = new ProductManager("airappinstaller"); mgr.launch("-launch "+app.nativeApplication.applicationID+" "+app.nativeApplication.publisherID); app.close();
Configuration files need to be modified:
<allowBrowserInvocation>true</allowBrowserInvocation>
For more articles about configuration files that need to be modified when restarting Flex AIR, please pay attention to the PHP Chinese website!