rfresh Posted January 21, 2015 Report Posted January 21, 2015 Hi Pete What's the best way for my windows app to check/detect if FSUIPC is installed on my customers PC? Thanks...
Pete Dowson Posted January 22, 2015 Report Posted January 22, 2015 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
rfresh Posted January 22, 2015 Author Report Posted January 22, 2015 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.
Paul Henty Posted January 22, 2015 Report Posted January 22, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now