LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How To Include And Run an External Executable Within My LabVIEW-Built application

Solved!
Go to solution
Highlighted

Hello,

 

I have an LabVIEW application that has an event case which calls an external .exe using the system.exec.vi function as described here:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P821SAC&l=en-CA

To use this method, I provide the path to the .exe I am calling. I now wish to add this functionality to a build.

To do this I am able to include the external .exe and its associated files when I make a build and an installer. However, 

how can I find the file path to the .exe after my application has been installed? 

0 Kudos
Message 1 of 4
(452 Views)
Solution
Accepted by topic author sam.blades

I have found a working solution to this problem. By using the application directory you can determine the location that the application has been installed in. From there you only need to append to the application path the specified location for the .exe you call. If you use the default settings when making a build the 'support files' will be in a folder called 'data'.

0 Kudos
Message 2 of 4
(435 Views)

Include the executable in your project and you can create an installer build and include it with your install..

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 4
(391 Views)

Hi Sam,

 

why do you need to convert a path to a string, from string to path and again from path to string? Why don't you use BuildPath to build a path?

Why is the "Downloader" button not read inside its event case? (I guess the same applies to "EXIT"…)

 

And why don't you attach a snippet instead of a blurry JPG image?

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 4
(384 Views)