LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find installed Versions of LV From the Dev Env

Solved!
Go to solution

From the development environment, I want to find the locations of all installed versions of LabVIEW.

Initially, I used this:

paul_a_cardinale_0-1761318412398.png

Then looked down from there.  But (in Windows) that may return either "C:\Program Files (x86)" or "C:\Program Files".

What can I do to find all installed versions, on any platform?

0 Kudos
Message 1 of 10
(404 Views)

Hi, Paul.

 

     The problem might be that if you use LabVIEW's "Application Files" with Get System Directory, it will (probably -- I haven't tested this as I "cleaned off" my system that had both 32-bit and 64-bit LabVIEW installations) return either "<Disk Drive>:\Program Files" for 64-bit LabVIEW or "<Disk Drive>:\Program Files (x86) " for 32-bit LabVIEW, so you probably should run it twice (once using what "Get System Directory" returned, and once for the "other-bittedness" version.

 

     Now its just a matter of searching in "Application Files" for files of the form "LabVIEW.ini" and seeing what folder (such as \LabVIEW 2024) they are in.

 

Bob Schor

0 Kudos
Message 2 of 10
(374 Views)

Hi,

 

Here is my VI to get all installed LabVIEW versions (32/64-bit) on Windows.

It is derived from a VI from Hooovahh.

 

It is using Windows registry, so it will only work on Windows.

I don't know how it is stored on Linux or MacOS.

 

Regards,

Raphaël.

Message 3 of 10
(340 Views)

@Bob_Schor wrote:

Hi, Paul.

 

     The problem might be that if you use LabVIEW's "Application Files" with Get System Directory, it will (probably -- I haven't tested this as I "cleaned off" my system that had both 32-bit and 64-bit LabVIEW installations) return either "<Disk Drive>:\Program Files" for 64-bit LabVIEW or "<Disk Drive>:\Program Files (x86) " for 32-bit LabVIEW, so you probably should run it twice (once using what "Get System Directory" returned, and once for the "other-bittedness" version.

 

     Now its just a matter of searching in "Application Files" for files of the form "LabVIEW.ini" and seeing what folder (such as \LabVIEW 2024) they are in.

 

Bob Schor


Hi Bob,

 

Yes, that's what's happening.  But what I am looking for is a single execution of a VI to find all instances of LV installations.

0 Kudos
Message 4 of 10
(319 Views)

Raphael (two posts earlier) provided Just What You Wanted.  Very nicely done (I gave it a Kudo).

 

Bob Schor

0 Kudos
Message 5 of 10
(311 Views)

@Bob_Schor wrote:

Raphael (two posts earlier) provided Just What You Wanted.  Very nicely done (I gave it a Kudo).

 

Bob Schor


Not quite.  I want something that works on any platform; not just Windows.

0 Kudos
Message 6 of 10
(280 Views)

@paul_a_cardinale wrote:

Not quite.  I want something that works on any platform; not just Windows.

Aha!  I suppose that, in principle, the method I suggested could work in a Linux environment (I recall writing a utility that "knew" (or "figured out", don't remember which) where the myRIO Toolkit saved LabVIEW RealTime routines, or you could write code to "go looking" and figure it out, but it's like middle eastern bread, a (potential) PITA.  Even less (= zero) experience with LabVIEW on a Mac.

 

Bob Schor

0 Kudos
Message 7 of 10
(251 Views)

LabVIEW on a Mac is only in so far easier than Linux that you have one manufacturer instead of a myriad of distributions. Other than that Apple likes to move around recommended locations just as much or more than anyone else. And then introduce APIs to query them and deprecate those APIs within a few years for security concerns or simply some whim of a developer.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 8 of 10
(223 Views)

What if they've installed it in a non-standard directory? The environment variable ProgramFiles and ProgramFiles(x86) gives the standard installation paths and it might be good enough to search for labview.exe from there, but not 100%.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 10
(212 Views)
Solution
Accepted by paul_a_cardinale

Since I really only needed paths to the preference files, I extracted pieces from raphschru's code and merged it with code for the Mac.

0 Kudos
Message 10 of 10
(96 Views)