Ad Dekkers Posted September 28, 2009 Report Share Posted September 28, 2009 In my project i have 2 files that shout be in the same directory as the .exe. One file is the .ini file and the 2e is a .xml file. I changed there destination of both files to "Same as caller", but when i build the .exe the .ini file ends up in the .exe dir AND in the data dir and the .xml file ends up in the data directory only. Is this a bug, or am i doing something wrong? Cheers, Ad Quote Link to comment
Dan DeFriese Posted September 28, 2009 Report Share Posted September 28, 2009 (edited) In my project i have 2 files that shout be in the same directory as the .exe. One file is the .ini file and the 2e is a .xml file. I changed there destination of both files to "Same as caller", but when i build the .exe the .ini file ends up in the .exe dir AND in the data dir and the .xml file ends up in the data directory only. Is this a bug, or am i doing something wrong? Cheers, Ad I'm not sure if I consider this a bug. But I usually resolve this in one of two ways: 1) Change the Support Directory's "Destination path" to match the directory of the *.exe. Then, set respective source files to be placed into the Support Directory. OR... 2) Add a new destination called "Application Directory" and set its path to match the directory of the *.exe. Then, set respective source files to be placed into the Application Directory. I'm not sure selecting same as caller works (or should work) with data files since there's no way for the app builder to determine which VI is calling it. (I know that I wouldn't want LV to search the entire VI hierarchy for a path constant!!!) BTW: If your trying to overwrite the default INI file that LabVIEW creates, this is done in the andvanced catagory. Edited September 28, 2009 by Dan DeFriese Quote Link to comment
jgcode Posted September 29, 2009 Report Share Posted September 29, 2009 In my project i have 2 files that shout be in the same directory as the .exe. One file is the .ini file and the 2e is a .xml file. I changed there destination of both files to "Same as caller", but when i build the .exe the .ini file ends up in the .exe dir AND in the data dir and the .xml file ends up in the data directory only. Is this a bug, or am i doing something wrong? Cheers, Ad I haven't tried the above, but I have noticed some strange things when building in 9.x. With source distributions, sometimes a control that is supposed to be included in an .llb destination, appears at the top level of the source distribution - outside of the .llb! I have to manually select that control to be in the correct destination folder, even though that virtual folder is set to go to the .llb Quote Link to comment
gmart Posted September 29, 2009 Report Share Posted September 29, 2009 I haven't tried the above, but I have noticed some strange things when building in 9.x. With source distributions, sometimes a control that is supposed to be included in an .llb destination, appears at the top level of the source distribution - outside of the .llb! I have to manually select that control to be in the correct destination folder, even though that virtual folder is set to go to the .llb If you can reproduce this behavior, it would be good to report that to NI support for evaluation. Quote Link to comment
Ad Dekkers Posted September 29, 2009 Author Report Share Posted September 29, 2009 2) Add a new destination called "Application Directory" and set its path to match the directory of the *.exe. Then, set respective source files to be placed into the Application Directory. Hello Dan, This did the job thanks! Quote Link to comment
jgcode Posted September 30, 2009 Report Share Posted September 30, 2009 If you can reproduce this behavior, it would be good to report that to NI support for evaluation. Hi gmart What is the best way to do that (sumbit code + report for eval to NI)? I have not done that before Is there a specific site to upload code? Or do I use the NI forums? Cheers JG Quote Link to comment
gmart Posted September 30, 2009 Report Share Posted September 30, 2009 Hi gmart What is the best way to do that (sumbit code + report for eval to NI)? I have not done that before Is there a specific site to upload code? Or do I use the NI forums? Cheers JG You can post your issue in the NI Forums. Those forums are regularly checked by applications engineers. Also you can open a service request via this - link. While NI developers do frequent the LAVA forums and occasionally provide support, the above are the "official" channels. Quote Link to comment
Dan DeFriese Posted September 30, 2009 Report Share Posted September 30, 2009 Hello Dan, This did the job thanks! Your Welcome. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.