01-21-2015 06:40 AM
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.
01-21-2015 06:51 AM
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.
01-21-2015 07:23 AM
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.