LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Support files calls when executable starts to run

I have an executable which have some support files including dll files.Which becomes a problem when the exe file kept separately or uploaded in Internet.

Then I modified the code.Added a new vi to fetch support-used data socket read function- file from web and keep in the same directory as exe.After executing the vi it calls main vi which needs dll.

But it asks for dll files when the executable starts to execute.Please help me to find a solution for this problem.

0 Kudos
Message 1 of 3
(3,335 Views)

This is related to an earlier post here: http://forums.ni.com/t5/LabVIEW/Supporting-files-outside-exe-file/m-p/3077530#M879088

 

Are the files downloaded to the same place as they are in the build specification output? By default they go into a 'data' folder as a subdirectory in the folder of the exe. 

 

Your 'downloader' will need to dynamically call your main VI when it has finished downloading the files - otherwise it will be looking for the dll's when the application launches, rather than when your main VI launches.

 

As mentioned in the other thread - either download your application as a .zip and then extract & open it or create an installer for your application. For your executable to work correctly, you need the additional supporting files in the build specification output. Downloading just the .exe on it's own will not work. 

 

As mentioned in the other thread - this is not common practice - it is better to distribute your application as a .zip file to keep the files together or create an installer.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 3
(3,328 Views)

You need to dynamically call your main VI.  There are plenty of threads here on how to do that.

 

But the better solution would be to just make an installer that includes all of your DLLs and support code.  People should run the installer and then you know they have everything.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(3,321 Views)