LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining Labview Directory

Let's say you're making an MSI (Windows Installer) for your labview toolkit
and want to put files into the user.lib or user.lib/errors directory

Of course the user can put Labview wherever he or she feels like. It's
generally c:\program files\National Instruments\Labview 6.1 I suppose, but
that depends upon the version and where the user selected during install.

Is there some kind of registry key or anything to tell me where Labview is
installed, so I can use that instead of just guessing or making my program
search?

-joey
0 Kudos
Message 1 of 4
(2,928 Views)
Answered my own question already, it's

HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW\Path

"Joey Oravec" wrote in message
news:3d876bfb@newsgroups....
> Let's say you're making an MSI (Windows Installer) for your labview
toolkit
> and want to put files into the user.lib or user.lib/errors directory
>
> Of course the user can put Labview wherever he or she feels like. It's
> generally c:\program files\National Instruments\Labview 6.1 I suppose, but
> that depends upon the version and where the user selected during install.
>
> Is there some kind of registry key or anything to tell me where Labview is
> installed, so I can use that instead of just guessing or making my program
> search?
>
> -joey
>
>
Message 2 of 4
(2,928 Views)
Answered my own question already, it's

HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW\CurrentVersion

"Joey Oravec" wrote in message
news:3d876bfb@newsgroups....
> Let's say you're making an MSI (Windows Installer) for your labview
toolkit
> and want to put files into the user.lib or user.lib/errors directory
>
> Of course the user can put Labview wherever he or she feels like. It's
> generally c:\program files\National Instruments\Labview 6.1 I suppose, but
> that depends upon the version and where the user selected during install.
>
> Is there some kind of registry key or anything to tell me where Labview is
> installed, so I can use that instead of just guessing or making my program
> search?
>
> -joey
>
>
0 Kudos
Message 3 of 4
(2,928 Views)
Don't forget to include the version as well. As you can see from the attached image, different versions will create different registry paths, so you need to be explicit to each version...

HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW\*VERSION*\Path

Like my answer? Give it a rating!

Christopher G. Relf
Certified LabVIEW Developer

Christopher.Relf@mBox.com.au
Int'l Voicemail & Fax: +61 2 8080 8132
Aust Voicemail & Fax: (02) 8080 8132

---
EULA
1) This is a private email, and although the views expressed within it may not be purely my own, unless specifically referenced I do not suggest they are necessarily associated with anyone else including, but not limited to, my employer(s).
2) This email has NOT been scanned for virii - atta
ched file(s), if any, are provided as is. By copying, detaching and/or opening attached files, you agree to indemnify the sender of such responsibility.
3) Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed.




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 4 of 4
(2,928 Views)