12-20-2011 01:57 AM
Hi!
How can I get the Installed LabVIEW.exe or labview palette path from exe?
(exe is created in LabVIEW)
Thanks
12-20-2011 03:07 AM
There is a Application Directory VI under the File Constants pallette that will give you the path of the running vi(.exe).
----
Returns the path to the directory containing the application.
If you call this VI from a stand-alone application or shared library, this VI returns the path to the folder containing the stand-alone application or shared library.
If you call this VI from the development environment and the VI is loaded in a LabVIEW project file (.lvproj), this VI returns the path to the folder containing the project file. If the project is not saved, this VI returns <Not a Path>.
If the top-level VI is not loaded in a project, the VI returns the path to the directory containing the top level VI. If the VI is not saved to disk, this VI returns <Not a Path>.
----
12-20-2011 08:48 AM
As noted, the Application Directory function will return to you the application's directory, i.e., your executable's directory. Why are you trying to get the location of the labview.exe file from your executable? There's no guarantee that the LabVIEW development environment will even be installed on a target computer, since the built executable uses the LabVIEW Run-Time engine, not the LabVIEW development environment.
10-29-2014 06:20 AM
I would need the folder/directory of Labview.exe to copy a folder that provides a custom functionality to the installed Labview version.
So is there actually a simple way of getting it instead of scanning through the local volumes and folders until you find it?
10-29-2014 07:36 AM
@zedtwitz wrote:
I would need the folder/directory of Labview.exe to copy a folder that provides a custom functionality to the installed Labview version.
So is there actually a simple way of getting it instead of scanning through the local volumes and folders until you find it?
I would recommend getting VI Package Manager for that. With it, you can build up a package and install it on each version of LabVIEW you have installed.
10-29-2014 12:38 PM
Thanks for your reply. In the meantime I have found also another possibilty to get the path by using the "VI Library" Function that returns the path to the 'vi.lib' file that usually located in the same folder as 'Labview.exe'.
@crossrulz wrote:
I would recommend getting VI Package Manager for that. With it, you can build up a package and install it on each version of LabVIEW you have installed.
10-30-2014 04:01 PM
An even easier way, if you are trying to run this in Development mode (as opposed to "as an executable", is to simply drop an Invoke node and ask for the Directory Path.
On my machine, Application:Name is "LabVIEW.exe", and Application:Directory Path is C:\Program Files (x86)\National Instruments\LabVIEW 2012.
BS
01-31-2018 10:55 AM
@D60 wrote:
Hi!
How can I get the Installed LabVIEW.exe or labview palette path from exe?
(exe is created in LabVIEW)
Thanks
oz
01-31-2018 10:55 AM
@D60 wrote:
Hi!
How can I get the Installed LabVIEW.exe or labview palette path from exe?
(exe is created in LabVIEW)
Thanks
OZ