• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Exe.xml

Messages
6
Country
us-washington
I made a application for my group to use with FSX. Anyway, how would I append the end users exe.xml to launch the application without them having to do it manually? Would the installer do this, another application or what's the best way to accomplish this? Thanks in advance.
 
Best way is to have an installer do it, or make installer launch a small exe that can do it.
 
The most efficient way would be to create your add on as DLL. You need only to setup an entry in DLL.XML. The DLL will be loaded every time you start FSX. You can find the details in the SDK documentation.
Regards
Mike
 
That one lugs its own can of worms with it. Sometimes it might just be better to make an exe file.
 
Thank you Mike & Peter! I've been reading the SDK's for years now and it's just now starting to make a bit of sense to me, I have a long ways to go yet :)

So, a simple solution for me to write would be, the program would read in the users current exe.xml, write the new elements for it to launch my application, then save it back? I think this would be easiest for me to accomplish at this point.

Another question. Does the \Application Data\Microsoft\FSX folder reside in the same place on every machine regardless of where FSX was installed or just use something like Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) to find it? Hopefully not dumb questions, just so much to read and learn.

Thanks again for your help and to FSDeveloper.com for this great community.
 
It is not ensured, that the 'Application Data' or 'AppData' is always found at the same location. Because of the different languages used in the Windows operating system, you would find language specific names for the user folder. If I need to find data there, I use the API functions:
SHGetKnownFolderPath
or
SHGetFolderPathA
Both return the path to the given folder as long as the user did not manipulate the path manually. But in this case, FSX would not work any longer. For details check the MSDN Library how to use the API functions.
Regards
Mike
 
Back
Top