03-11-2013 09:36 AM
I would like to know how to generate a true/false condition based on whether a program is installed on a target machine. I have a couple applications that need to self adjust with their functionality, based on which computer they are installed on, so I would only need to maintain one version of the code. The first step with the program would be to check program files, program files(x86), or the registry just to determine if the program is installed. The result will move to the next step, which is that if the program is not present, then is a specific GPIB device attached? I think i can determine that by trying to initialize the device, and reading an error cluster. What I am having trouble with is determining if a non-National Instruments related program is installed on the target computer. Any direction toward the solution is greatly appreciated.
Solved! Go to Solution.
03-11-2013 09:44 AM
Considering you can usually override the default install at location I do not think checking the file system would always be accurate. However most software installs usually modify the registry. You could determine what registery keys are created and, in your program, go see if they exist.
03-11-2013 09:52 AM
The software I am searching for is only installed by me, so it would be in the default location, but I like the registry idea better anyway. I have not worked with registry searches before with LabVIEW, so a couple of pointers on how to do it would be great. The whole goal is to have the program decide which computer it is installed on, so different levels of functionality can be achieved with a "One size fits all" approach.
03-11-2013 10:16 AM
03-11-2013 10:20 AM
Thank you!
That was what I was looking for!