LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP & InternetTK folders when building exe

Solved!
Go to solution

I have an application in LV2012 SP1 that uses both FTP VIs and InternetTK VIs (from the deprecated Internet TK).

When I build the application to an executable, I end up with 2 directories next to the exe: NI_FTP and NI_InternetTK_Common_VIs. Both have 5 VIs with the same names in them (from their corresponding .lvlib, e.g. "Get Case Matching.vi" or "No Time Out Error.vi").

In LV2011 I didn't have any folders with VIs when building the same application.

Why do I get these 2 folders when building the executable in LV2012? Is there any way to have the application builder pack these VIs into the exe? I thought having 2 VIs with the same name in different lvlibs should not be a problem.

 

0 Kudos
Message 1 of 5
(3,054 Views)
Solution
Accepted by topic author dan_u

Have you checked the flag "Use LabView 8.x file layout" (Advanced tab in Build properties)?

 

Regards,

Marco

Message 2 of 5
(3,038 Views)

Yes, we use the 8.x file layout since we rely on that structure inside the exe (the application was initially in LV8.5). Would require major changes if we change that. Do you think this would change anything? I will try.

 

0 Kudos
Message 3 of 5
(3,035 Views)

Yes, disabling 8.x file layout seems to make those folders disappear. I guess we'll have to adapt our code then...

Thanks.

 

0 Kudos
Message 4 of 5
(3,029 Views)

With the ability to have static VI references I see very little reason to use paths inside an EXE, or even to use VITs in applications any more.  Your code doesn't need to be changed much to support the newer file structure.  Just replace the code that you did have figureing out the path to the EXE with a static VI reference to the VI, and then get the Path using a property node, then all your existing code should work using the path to the VI no matter where it is in the EXE.  Or of course you can just check use 8.x file layout.

0 Kudos
Message 5 of 5
(3,019 Views)