LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Placing ini file in specific location when building the application

Solved!
Go to solution

Hello,

 

   I have a small problem.  I have an ini file that I use to store certain parameters.  Lets call this file app.ini.  When I build the Application.exe, it puts that file into the data directory.  I was hoping that it would be one level higher and be located in the same directory as Application.exe is (otherwise it won't read the file correctly.)  I looked at the Source File Settings in the Category list in the properties window for the build and set the Destination to be "Same as caller", but that didn't put it where I wanted it.  I'd really like this file to be one directory higher when I make my build in order for my app to read it correctly.  Any suggestions?

 

I use this executable later on when I make my installer and the problem simply propagates there too, not good.

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

One way to solve the problem:

1) In build properties window select Destinations and create a new destination. Select as "Destination Path" the same dir where the exe will be stored

2) Assign this destination to the .ini file.

 

Let me know if it works 🙂

Marco

 

Message 2 of 3
(2,516 Views)
Thanks! That did it!
0 Kudos
Message 3 of 3
(2,497 Views)