05-28-2015 02:35 PM
Hello All,
I want to includ some libraries for 2014 in my distribution installer in LabVIEW 2014.
Some of these files are located in Instr.lib and others in User.lib. There may also be some in vi.lib.
I have some devices and custom VI's I have written and would like to distribute these with my executable.
Is there a way to include these libraries automatically?
As it stands now, I have to install my application then manually copy these libraries which is obtuse.
Note that one of my user libraries is a directory of VI's, not a compiled libary (at this time).
Thanks for any advice.
05-28-2015 02:41 PM
Are you talking about an installer for an Executable Build Specification? In that case all statically linked content will be part of the executable itself.
05-28-2015 02:53 PM
Yeah, I believe so.
In the past, though, none of these libraries were installed.
But this is why:
My main VI is the test VI that calls sub vi's from a remote location by reference. These VI's are dynamic in scope.
As such, any of these sub VI's that refer to the libraries in my User.lib for example have no VI to reference. These dynamic VI's do not get installed. They are simply present in a library.
Would it make sense, then, that my VI's that are called by reference should themeselves be installed using an executible so the required instrumetns and user VI's are installed as well?
That might do the trick.
05-28-2015 02:57 PM
@DB_IQ wrote:
Yeah, I believe so.
In the past, though, none of these libraries were installed.
But this is why:
My main VI is the test VI that calls sub vi's from a remote location by reference. These VI's are dynamic in scope.
As such, any of these sub VI's that refer to the libraries in my User.lib for example have no VI to reference. These dynamic VI's do not get installed. They are simply present in a library.
Would it make sense, then, that my VI's that are called by reference should themeselves be installed using an executible so the required instrumetns and user VI's are installed as well?
That might do the trick.
You can manually add them as dependencies to a seperate folder in the exe build spec, and then reference that relative location in your main VI when calling them.
There is always the Post-Build action too that might help.
05-28-2015 03:20 PM
Pre and post-build VIs are dangerous things - for me - because I can sit there and tinker with them forever and get my installer to do cartwheels and backflips. 😉