02-03-2011 10:19 AM
Hi! I would like to add my file versions (including build number) to the end of my window titles automatically. Especially the auto-incrementing build number would be really useful. I'm having a hard time finding this VI/Application Property that contains this version number and some help would greatly be appreciated.
This is the version number I'm speaking of
Windows explorer has the correct File Version in the Details tab for the executable properties (maybe there is a way to get to this meta information?)
Thanks for your input!
-Nic
Solved! Go to Solution.
02-03-2011 10:30 AM
Did you try a search? Getting the application version has been asked MANY times. In fact, it was just asked 2 days ago: http://forums.ni.com/t5/LabVIEW/Executable-compile-version/td-p/1436444
As for putting it into the title bar, use the Front Panel Window.Title property
02-03-2011 11:40 AM
Thank you for your reply. When I try and include the suggested code the VI appears to be executable, however when I build the application I always get this error:
Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
Error 1 occurred at Invoke Node in AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_EXE.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_Application.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
Possible reason(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488: Command requires GPIB Controller to be Controller-In-Charge.
Method Name: Linker:Write Info To File
I created a SubVI to set the title. Input is the VI Path, and the "This VI" reference from the VI where I want to manipulate the title.
Here is how I'm trying to call this subVI:
When I disable this code the application builds just fine. Thanks for your help.
02-03-2011 11:44 AM
I was hoping it was the fact that I was missing the VI reference link to my 2nd Property node for FP.Title. Fix it, but still no dice... 😞
02-03-2011 12:04 PM
I found Jared S's fabulous VI for finding the version number of the executable w/o using .NET and that worked for me:
http://forums.ni.com/t5/LabVIEW/File-version-info/m-p/362462?jump=true#M183744
Not sure why the .NET wasn't working for me as I'm on Windows 7 which I thought included the .NET framework. I find it a bit odd that NI hasn't included a VI or Application property with this information as platform dependent solution are never ideal IMHO.