04-21-2025 10:44 AM
Hi,
I am trying to build a .exe file and an installer for my project, and I have a .lib folder in my dependencies, but when I go to either the installer or .exe creation tool and I look in source files, it doesn't show up in either. How do I get these files included in the installer/.exe that I am building?
04-21-2025 11:27 AM
Your question doesn't make a lot of sense.
By "a .lib folder", do you mean user.lib, instr.lib, or vi.lib? Or a different folder that you created?
Why do you feel the need to include it in your EXE or installer? If it's just .vi files, then if your main VI has them as a dependency, they are auto-included.
If it's anything else, just add them to your project manually instead of leaving them in dependencies.
04-21-2025 12:12 PM
it is vi.lib. I may not fully understand how the auto-inclusion works, but my program doesn't work when I run my .exe file on a different computer, but the .exe works perfectly on the dev machine. I am getting issues with serial communication to zaber stages with the VISA functions if that helps at all to clarify
04-21-2025 12:24 PM
Make the installer so all the stuff you need goes along with you.
04-21-2025 12:45 PM
@xyz12309 wrote:
it is vi.lib. I may not fully understand how the auto-inclusion works, but my program doesn't work when I run my .exe file on a different computer, but the .exe works perfectly on the dev machine. I am getting issues with serial communication to zaber stages with the VISA functions if that helps at all to clarify
Right, then you don't need to include vi.lib files manually. If the files from vi.lib were "missing" somehow, your EXE would just simply not run at all. In those rare cases where you can manage to get an EXE to build but somehow not include a VI, then you get a main VI that doesn't even run because it has a broken run arrow in the EXE.
I would instead recommend posting a separate thread about your serial issues. Without a lot more details it's hard to start to point at a solution.
04-21-2025 02:05 PM
The serial library relies on the VISA runtime driver. I'd recommend ensuring that is installed on the computer the EXE is running on. Here's a link to a similar topic: https://forums.ni.com/t5/LabVIEW/Building-applications-including-NI-VISA/td-p/2572227.