LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the 64-bit application path?

Solved!
Go to solution

I was just working with the builtin Get System Directory function on a 64-bit machine running Windows 7 and noticed that the Application File path selection always returns the path to 32 bit programs directory (i.e. c:\Program Files (x86)).

 

First, is this because I'm running 32 bit LV or am I missing something. 

 

Second, if I wanted the 64-bit program directory, is it safe to just trim off the " (x86)" part. I have never seen a system where that wouldn't have worked, but kinowing Windows there could be some strange configuration where it would break.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 1 of 3
(3,011 Views)
Solution
Accepted by topic author mikeporter

It appears to be an issue with emulation from what I quickly read online about it.  You can however get this information from the registry.

 

The location in registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

You are interested in the string value:

ProgramFilesDir

 

aputman
Message 2 of 3
(2,999 Views)

Thanks!

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,991 Views)