LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Product Version programmatically?

Colleagues,
 
Here a little bit more complicated question as was discussed here.
How to get Product Version programmatically from installed application?
 
I mean following version:
 
 
 
In general we should get this from registry:
 
 
 but how to find proper GUID where it stored?
 
any idea?
 
regards,
Andrey
 
0 Kudos
Message 1 of 8
(3,605 Views)
Well, seems to be working solution. Just perfom simple search over all keys:
 
 
The example in attachment, may be will be interesting for someone else...
 
best regards,
 
Andrey.
 
Message 2 of 8
(3,573 Views)
Thanks for posting that! I've been amazed at the absence of a decent
property to read the version of a build executable. To me it's really weird
to add a version to an executable, and not providing a way to read it...
Especially since they did exactly the same with the VI revision (you can
read it back, but not in an exe).

This saves me the trouble of looking for this myself.

I noticed that windows sees the version of the exe in it's properties. My
stategie would have been to read back those properties. But if your solution
works, why bother?

Regards,

Wiebe.


0 Kudos
Message 3 of 8
(3,544 Views)
Hi, Wiebe,
 
The solution above, its not the solution for reading Version of the Executable. This is fo distribution version (which normally can be obtained in Control panel->Software...):
 
best regards
Andrey
 
0 Kudos
Message 4 of 8
(3,543 Views)
Just to be sure, this is the information you can give in a build
specification under Version Information, Verion Number, Major, Minor, Fix,
Build?

If not, what is this number. I mean, can you control it, and if not, where
is it good for?

Regards,

Wiebe.


0 Kudos
Message 5 of 8
(3,510 Views)
No, its not version of build.
This is product version which is available in the Installer Properties (see Product Information - Product version). Screenshot you can see in the first posting in this topic.
 
Just to be clear - you have two versions. One is four digits Build version (Build Specifications->New->Application (EXE) ), which written inside of executable and can be easily obtained, and another one is three digits Installer version (Build specification->New->Installer), which can't be easily obtained. You can change both of them, or set both to auto-increment.
 
best regards,
 
Andrey.
 
0 Kudos
Message 6 of 8
(3,506 Views)
Ok, I didn't get that it was about the installer...

> Just to be clear - you have two versions. One is four digits Build version
(Build Specifications->New-
> >Application (EXE) ), which written inside of executable and can be
easily obtained,

So how is this obtained then?

Regards,

Wiebe.


0 Kudos
Message 7 of 8
(3,488 Views)
Never mind, I assume you refere to the DLL or .NET methods that are
suggested in the link in the original thread.

Thanks,

Wiebe.


0 Kudos
Message 8 of 8
(3,488 Views)