Is there a way (registry entry?) to know if the computer, on which the installer is running, have the AF client version installed or not?
For example, to know if the computer have PI AF Client 2014 R2 installed?
Is using the approach suggested in this other thread feasible for you?
Ill try this out, thanks
Sadly, it doesn't work as this method gives the referenced SDK dll version. I need to know if the client is installed so the user can get the data from his server, as it requires some registry entry and dlls other than the AF SDK and PI SDK (which are referenced in the application) that are included in the client installation.
In case the AF SDK Client is not (properly) installed you will receive an exception. You should be able to trap it.
Raphael St-ArnaudI need to know if the client is installed so the user can get the data from his server, as it requires some registry entry and dlls other than the AF SDK and PI SDK (which are referenced in the application) that are included in the client installation.
It's not clear to me what you are referring to. Can you explain a bit more detailed? What client installation? What libraries?
In the C# application, both the AF SDK and the PI SDK are referenced so we can actually use the functions associated with them. I tried the PiSystems.Version on a computer without the AF client installed. It still returns a version (2.6.1) which is the PI SDK (or the AF SDk, not sure) version. Which mean that i cant use this method to detect if the AF client is installed or not on the computer the application is being used.
The problem is that if the AF client isn't installed, the user cannot properly read the Pi points on the server as it is lacking some dlls an registry entry.
Right now , if the data reading fail, we have a pop up telling the user to check if the AF client is properly installed on his machine but we would like to make the check automatically so that the user doesn't have to contact is system administrator to check if the AF client is installed.
By AF client , i am referring to PI AF Client 2014 R2
2.6.1 will refer to the AF SDK, the current PISDK version is around 1.4.4.
You could look for the AFExplorer.exe in the %PIHome%\AF directory or (probably more robust) you can look in the registry
Try this link mdb-blog.blogspot.com/.../c-check-if-programapplication-is.html
Thanks, this worked quite well!
Retrieving data ...