LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview installation directory

Does anyone know if it's possible to programmatically determine the LabVIEW installation directory?  Please keep in mind that it should also work when it's converted to an executable...

 

Thanks.

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 1 of 5
(2,916 Views)

Hi Matt,

 

I have the feeling this has just been asked recently...

 

Anyway:

- Why do you need LabVIEW's installation folder for an executable?

- Why do you need it in a VI that runs in the IDE?

- Did you check the AppDir file constant?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,901 Views)

AppDir gives me the installation directory of the application I built, not LabVIEW.

 

I need the installation folder because I need to access a file in the instr.lib folder (long story, not worth telling, just trust me).

 

I looked through all of the posts prior to posting.  AppDir was in there, but nothing on the installation folder.

 

Thanks.

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 3 of 5
(2,882 Views)

Hi Matt,

 

one shouldn't rely on the installation path of some arbitrary tools!

 

Anyway: you should examine the registry to find some suitable keys that tell you the install path of LabVIEW...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,873 Views)

Unfortunately, that is not an option in this case.  Some things we simply cannot control and I have to focus on solving the problem I have.  If you don't have an answer, that's fine.

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 5 of 5
(2,863 Views)