LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programmably extract the project build information set in the project build specification. So I can then use the information in an ‘About’ dialog.

Extracting Project information
 
How can I programmably extract the project build information set in the project build specification.
So I can then use the information in an ‘About’ dialog.
 
Dave
0 Kudos
Message 1 of 9
(3,770 Views)

Do you mean something like this?

 

Message Edited by JoeLabView on 04-27-2007 09:04 AM

Message 2 of 9
(3,767 Views)
To retrieve specific items:

Message Edited by JoeLabView on 04-27-2007 09:12 AM

Message 3 of 9
(3,758 Views)

I did the examples quickly, so they are messy..

I simply wanted to know if that is what you meant by build spec parameters (info).  Or if you wanted to read the VI description for the "About" dialog. 

The example does not show how to put the info into the About description.

Let me know if that was what you were looking for.

Regards,

RayR

Message 4 of 9
(3,753 Views)
In the labview\resource\appbuild folder their are some VI's that can deal with build specs! They return a variant containing the data!
It's the reason I build a variant probe.

Be aware that the build info is not present in th lvproj file of the built executable!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 9
(3,752 Views)
Thanks guys,
I think I’ll have a go at coding something up along the lines you suggest Joe. The specific things I’m interested in extracting is the Version Number and description from the ‘Application Information’ properties in the project build specifications.
 
 
0 Kudos
Message 6 of 9
(3,746 Views)
Hi,


You can create a Application property "Project.Projects[]", or get the used project reference from a vi "Owning Application", and wire this to a property node "Project.Projects[]".


Then you have a project reference. Get it's root with a property "root" Then you have to get all "EXE" types, with the method "Get All Descendants" with "EXE" wired to Type.


From the "EXE" ref, you can use "Get Tag Names" and "Get Tag" to get (and, presumably, set) everything you want.


I don't think (please let us know) if this information is still available in the actual build executable. But you can get the info during development, and store it somewhere (in a vi description or something). Then when you save the vi, it gets stored, and you can retreive it in the exe.


Regards,


Wiebe.
Message 7 of 9
(3,745 Views)


Davith wrote:
How can I programmably extract the project build information set in the project build specification.  So I can then use the information in an ‘About’ dialog.


Dave,

If you are wanting to display the information in an About box, I assume you need the code to run from inside the EXE and get the information from the EXE itself.  There is an example of getting this information via a Windows .NET assembly:

http://digital.ni.com/public.nsf/allkb/935BA7FB426305398625711E0055F1FA

Kennon

0 Kudos
Message 8 of 9
(3,703 Views)

Thanks very much for the support.

The example from http://digital.ni.com/public.nsf/allkb/935BA7FB426305398625711E0055F1FA
GetFileVersion_DotNet.vi  returns all the information I need.

That's the solution I'll be running with.

Davith

 

0 Kudos
Message 9 of 9
(3,698 Views)