I'm trying to get MSFS to automatically launch an external SimConnect application (.exe) whenever the game is launched by placing an entry in the exe.xml file (at %LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\exe.xml). My exe.xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?> <SimBase.Document version="1,0" Type="SimConnect"> <Descr>Auto launch external applications on MSFS start</Descr> <Filename>exe.xml</Filename> <Disabled>False</Disabled> <Launch.Addon> <Name>My Company MSFS Utilities EXE</Name> <Disabled>False</Disabled> <Path>C:\MSFS Online Content\Community\my-company-msfs-utilities\utilities\EXE_Application.exe</Path> </Launch.Addon> </SimBase.Document>
However, I've had mixed success. The launch seems to randomly fail at times. It only launches successfully about half of the time. I've enabled SimConnect logging (using the SimConnect.ini file) and the following error is logged whenever the launch fails:
Exe Launch Failed: GetLastError=0xC0EA0001 Path="C:\MSFS Online Content\Community\my-company-msfs-utilities\utilities\EXE_Application.exe" CommandLine=""
Does anyone have an idea what could be causing this seemingly random launch failure? I couldn't find details on this error code anywhere. Any help would be appreciated.