LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EXE Build Number Programmatically

Solved!
Go to solution

I have seen the discussions about finding the EXE Build Number using .NET or dll calls.  Do any of the newer versions of LabVIEW have this property built in (so that I could call it in my app)?  Seems like such a common necessity, not sure why it hasn't been included (or else I just can't find it, I've looked everywhere for it...).  Thanks for the help in advance.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 1 of 4
(2,551 Views)
Solution
Accepted by topic author Nathan_S

There is something built-in, although it does use a DLL call - vi.lib\platform\fileVersionInfo.llb

 

As far as I know, that should retrieve the version number you set in the build.


___________________
Try to take over the world!
Message 2 of 4
(2,543 Views)

Theres is a Windows-only VI that will get the version number of an EXE or DLL. It is located at - vi.lib\Platform\fileVersionInfo.llb\FileVersionInfo.vi. Here is the documentation from the VI:

 

"This VI obtains information about an existing executable or DLL (such as its version and product name). It can be called as a subVI from a VI that will be built into an executable to obtain information about that executable.

To obtain version information about an existing executable or DLL, enter a path to an application into "Application Path in" and run the VI."

George M
National Instruments
Message 3 of 4
(2,540 Views)

I assume this can be called from within the application (say to be displayed on an About... splashscreen or something)? 

 

Thanks to you both for the help.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 4 of 4
(2,532 Views)