How to Determinate the Version of an Executable Built with LabVIEW

Sunday, February 03, 2008

Below I would like to summarize possible methods for determining the version of an executable built with LabVIEW.

The problem is that App.Version will return not a version of the excutable, but LabVIEW Run-Time version:

So, if you want to get version of built executable, we need to use some tricks for doing this.

Method 1 - Use Microsoft .Net
This method described on NI.com. Probably this is most easiest way:

Method 2 - Use WinAPI
If you don't like .Net you can do it with Win API:

Method 3 - Use CIN Node (or Dll Wrapper). This is variant of Method 2 - the difference, that calls WinAPI from SubVIs incorporated into CIN (or you can do this with DLL wrapper as well):

 

Below useful links:

App Ver discussion on NI Forum
Determining the Version of an Executable Built with LabVIEW
Determining the Version Number of LabVIEW Executables