LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the path to an labview build executable

Solved!
Go to solution

After building an executable with Labview and making the installer, users install it on certain PCs. During the installation process they have the option to install on a directory of there choice. How can I find out this installation path with a non-labview method, e.g. script.

 

Jörn

0 Kudos
Message 1 of 2
(2,485 Views)
Solution
Accepted by topic author joernheit

Hello Jörn,

 

In my experience, you have two options:

 

A) Search all possible install locations and find the location of the executable.

B) Set some type of permanent flag during installation that your script can refer to.  This is usually a registry key, but you could also use a text file that installs to the user data or app data directory in the same location no matter where the user places the exe itself.  System variables are also an option, but I don't see a good reason to use those unless you need to run your script remotely.  Be aware that antivirus or user intervention can snaffle these methods if you're relying on them, so if something critical relies on your script succeeding you'll either want to let the user know in the documentation or through a prompt or check/recreate this flag within the exe itself, perhaps as part of the launch process (or both).

 

For B), you would want to do this as a post-install action (available as an option in the "Advanced" tab of the Application Builder Installer Properties window) and write the install location to the location/file/variable you've chosen.

 

Regards, 

Tom L.
0 Kudos
Message 2 of 2
(2,458 Views)