LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application builder subdirectories

Solved!
Go to solution

I have a program I developed which looks for files in subdirectories. I'd like to maintain my directory structure for the application is there a way to do this with the Build Specification>> Application(EXE)

My program at startup finds what directory it is i, and then later in the program will reference a subdirectory with a .ini file or a .tdms etc... 

e.g. 

C:\Program

C:\Program\SysConfig\config.ini

C:\Program\TDMS\tdmstream.tdms

 

When I build the application I get a .exe but the directory structure does not come along for the ride. so the standalone .exe fails as it cannot find the .ini file as it isn't in it's subdirectory. 

 

any hints ??

 

 

0 Kudos
Message 1 of 3
(2,366 Views)
Solution
Accepted by topic author dennisa

As I understand it , your executable uses some external files (ini, etc) that it looks for when it runs. You have some flexibility as to how these files are included with the EXE. What you want to do is include those external files in your project first, then add them to the "always included" category in your build spec under Source Files.

 

Then you can configure where these support files will go under Source File Settings. You can choose from one of the available options, or create your own destination (you have to do this in Destinations first). This gives you flexibility as to where to put your support files...The files will be copied during the build.

 

You can also build an installer and place the support files exactly where you want them. 

Misha
Message 2 of 3
(2,358 Views)

Thank you very much, this is exactly what I was after. I had tried these options previously but with you added infor it worked as excpected this time.

 

Thanks again

0 Kudos
Message 3 of 3
(2,354 Views)