03-23-2006 01:16 PM
So when I build an application in LV Project, I can enter a version number of the build. How do I get that build number from within the program? I’d like to check that build number against the latest to make sure the newest version of the program is running.
I tried the App.Version property but it only returns 8.0, presumably the Labview version rather than my application version. Am I missing something basic or did NI?
Thanks,
Doug
03-24-2006 08:58 AM
03-24-2006 11:41 AM
It certainly seems like Labview should be able to query the version number of it’s own built applications. Maybe Labview 8.1 will fix the oversight.
I figured out a way around it if you have the .net framework installed. In .net there’s a system.diagnostics, which has a method FileVersionInfo that’ll extract the file version (and more) out of any file. This’ll probably only work with Labview 8 since it seems that previous versions didn’t add the version info to the EXE it built.
03-24-2006 04:38 PM
01-09-2007 04:51 AM
05-11-2007 07:31 AM
Do you know if is there a way to extract version number without .net installed? Since i'don't want to force my customer to install .net.
Thankyou
Steve
05-11-2007 06:49 PM
09-24-2007 07:09 AM