Jump to content
The simFlight Network Forums

Recommended Posts

Posted

What's the best way for my windows app to check/detect if FSUIPC is installed on my customers PC?

 

Without FS running, you mean? Looking for the DLL in the FS Modules folder, I suppose, and hoping they have installed it correctly.

 

Pete

Posted

I meant more like when someone starts up my app, before I start making use FSUIPC, can I detect if they even have it installed? My situation may be a bit different than most because I'm using FSUIPC and Paul's .NET .DLL to communicate with FSX. The .DLL of course is always in my code but it uses FSUIPC to 'talk' to FSX. If a user has not installed FSUIPC, then my app can't talk to FSX. So, I was wondering the best way to check if they have FSUIPC at all.

Posted

The usual way to handle this is to attempt the connection and catch the error thrown if FSUIPC is not running. This could be because the user doesn't have it installed or because FSX isn't loaded yet. Either way, you can display a message or a status in your application to let the user know that your application cannot connect to FSUIPC.

 

If you have a look at my C# Example Application there is code in there that attempts a connection and if it doesn't find one it will keep trying. Meanwhile, the connection status is displayed on the form. If the connection is ever lost it goes back to the looking state and the main functionality is suspended until the connection comes back.

 

Paul 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.