EXE.xml Often Not Starting Addons Correctly

All this done. The last time this morning. Delete “EXE.XML” file, and reinstall FSUIPC. This generates a new “EXE:XML”, but nothing follows without loading it
What would be the correct syntax for this file? From the beginning. Like here we have the “why”

I am not sure what is the purpose of this forum if Asobo does not get evolved providing some insight. Either a solution or problem status in development pipeline. It is clear such issue not user fault rather a bug in MSFS.

1 Like

I don’t think it’s really an Asobo issue. If they can’t replicate the whole hardware and software situation of every user they won’t be able to provide one solid fix. I tried a couple things (rearranging the loading order, syntax, admin mode, etc.) and now it works without any issue on my end.

EDIT: One thing I can recommend tho: If it won’t load half way into the loading screen shut down MSFS via task manager. then start it again in admin mode (which you should do always) and press normal mode in msfs. That usually does the trick for me when it won’t work.

1 Like

I have the store version - but i can’t set the app to run as administrator automatically - i can right click it though to do that. Any ideas how to get it to do it automatically?

Thanks

you could write a bat file probably. I just rightclick it every time. Muscle memory :smiley:

1 Like

The exe.xml file should start by itself, without having to tune the game

Am I the only one having the problem?

Obviously you aren’t. There’s nothing more you can do unfortunately other than trying the things I mentioned before. Admin mode, syntax, rearranging the loading order in the exe.xml, closing the simulator halfway through the loading process with the task manager and open it up in admin mode and press ‘normal mode’, removing some stuff from the exe.xml to see if something is broken, etc.

XML is not code or an app. A XML file only contains data and data tags for structure. The data in XML files is used by an application. The application has very strict definitions about the data and how it is used. If the data in an XML file doesn’t match the application’s definition, then usually the application either ignores the invalid data or the xml file completely.

The data and data tags have to match the application’s definition precisely. Programs don’t often check xml data because the xml data should be formatted correctly.

I am using an exe.xml file without any problem from Feb 2021 having only one entry. My only recommendation is to strip out all the xml entries and add each of them back separately to find what works and what doesn’t. It is possible that a 3rd party application mangles or rewrites incorrectly the exe.xml file each time it runs.

I understand what you’re saying, but the problem has started since the last update. The exe.xml file is not written by me, it is written automatically when installing the installations with fsuipc

I use FSUIPC7 myself. No problems on my end regarding that.

I alos have this problem with no solution that I can find. I’ve tried deleting the exe.xml file and letting apps like Lorby Axis and Ohs or the Fenix app rebuild it. It just doesn’t work at all for me. It did previously though.

I have 4 apps I would like to run automatically, but can’t get it to work:

Axis & Ohs
AFC Bridge for the Honeycomb Bravo Throttle
FS Realistic
Fenix

None of the four programs run at all? Have you tried editing the exe.xml file to run each program run individually? Which programs have changed since the exe.xml file was working correctly? If any of these programs are automatically updating the exe.xml file during an installation or an upgrade, they might be messing things up.

My exe.xml has one of the programs you have and it runs fine and has been through multiple MSFS updates.

Edit: I added two,additional programs manually that I usually start manually after MSFS starts. One started correctly. The other started but didn’t run correctly because it wasn’t accessing the program’s settings in the program’s directory. A simple batch file would probably fix this. As far as I can tell MSFS is processing MY exe.xml.

Unfortunately, I can’t get it to do anything with my exe.xml file. I deleted it and used each of the 4 programs to create a new file with just their “start up” code and tested them one at a time - nothing happens. No programs run at all. It seems like it is just ignoring the exe.xml file completely.

It’s not a huge deal as i can just run the programs separately, so really just a minor inconvenience.

In my case it doesn’t have to do with the bad or good code in the exe.xml

Sometimes it loads and sometimes it loads not.

In my case I made two tasks with advanced permissions for AAO an FSREalistic. The name of the windows tasks are “Axis” and "realistic. The goal was to start the programs as Admin without UAC query. I disabled the outo-start function in FSRealistic itself. Also start the Stream Deck (normal) as third program (here on first position).

<?xml version="1.0" encoding="Windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0">
    <Descr>SimConnect</Descr>
    <Filename>SimConnect.xml</Filename>
    <Disabled>False</Disabled>
	    <Launch.Addon>
        <Name>StreamDeck</Name>
        <Disabled>false</Disabled>
        <Path>C:\Program Files\Elgato\StreamDeck\StreamDeck.exe</Path>
    </Launch.Addon>
    <Launch.Addon>
        <Name>schtasks</Name>
        <Disabled>False</Disabled>
        <Path>C:\Windows\System32\schtasks.exe</Path>
        <CommandLine> /run /TN "Axis"</CommandLine>
    </Launch.Addon>
	<Launch.Addon>
        <Name>schtasks</Name>
        <Disabled>False</Disabled>
        <Path>C:\Windows\System32\schtasks.exe</Path>
        <CommandLine> /run /TN "realistic"</CommandLine>
    </Launch.Addon>
</SimBase.Document>

If I renew the file, everything works. But next time it does not lot anymore.

I used that code for a long time - everything was fine. But one of the last updates caused the exe.xml not to be loaded or executed. Either all programs are loaded, or none of them. It is not the code.

2 Likes

Same problem here…
sometimes it loads sometimes it does not load…
Can’t figure out why .

2 Likes

Hello, I have the same problem. After trying many things nothing worked. But when I had to launch the game in Safe mode, the EXE.Xml worked again! So I guess it is because of an add-on, Fenix A320 I think for me

1 Like

I have the same issue here and am quite surprised to find it being reported for months without any reply or solution.
So far it wasnt too big of a deal, but with more and more sophisticated Add-Ons relying on external apps to run, it is getting very annoying to manually starting the exe-files while this .xml is meant to automate this process.

As it looks like Asobo has discontinued exe.xml (probably not xbox compatible) I wondered if anyone is experienced enough with windows to explain how this might be done via task scheduler.
I am sure there is a way to set up a way to start those exe files when triggered by MSFS starting.
But I dont know how to set MSFS as a trigger…

I have been having this problem recently and I found that having both AIG traffic and another traffic package both linked to my community folder at the same time was causing my exe.xml not to run. Not sure if there is a conflict between them or what. However, removing one or the other resolves my problem. I naturally chose AIG over the other one.

Chris

okay, found a solution for my usecase:

I taught myself in 5 minutes how to write a batch file.

Starting that Batch-file MSFS is starting along with FENIX and COUATL

and these are the ones I need to start up with the sim.

Still it would be nice to get EXE.XML working as some programs should only start under certain conditions ( eg VDGS from Aerosoft )…