01-16-2023 09:53 AM
I am attempting to create a .exe application from a LabVIEW project build. I have looked online and followed the NI tutorials. However, the built .exe cannot locate .dll files when moved to a Windows 11 machine.
I attempted to always include the .dll files under the source files tab in the build specifications. However, the default (which I cannot figure out how to change) is "include if referenced." When I tried to move them into the always included portion of the source files, a triangle with a "!" appears. The .dll files are not listed under the Always Included section list nor the Startup VI list.
I am unsure if my program directly references these files, but the .exe will not run without them. How can I always include these files with a build and have them link correctly?
As a side note, the .exe file build works well on a Windows 10 computer that also has the same version of labview installed. I think the .dll files will still be an issue if I put the .exe program on a fresh install of windows 10.
Windows 10, LabVIEW 2021 SP1 64-bit. File names are covered due to IP.
01-16-2023 10:19 AM
advapi32.dll
kernel32.dll
niimaqdx.dll
nilvaiu.dll
nivision.dll
nivissvc.dll
TLTSP_64.dll
These are all the .dll files that it cannot find. They appear to be tied to NI vision assistant 2021?
01-16-2023 10:27 AM
advapi32.dll & kernel32.dll are Windows' files, not NI files.
There is no need to include them in your build.
NI files need separate installer/activation.
01-16-2023 10:29 AM
How can I point the executable to find them automatically?
01-16-2023 10:45 AM
There is no need for Windows' files. They are loaded in memory when Windows starts.
No need for NI's file either. These dlls are installed at known locations.
01-16-2023 10:47 AM
Then why isn't my program able to find them on the clean install of the Windows 11 computer? My executable needs to run without having LabVIEW previously installed.
01-16-2023 11:11 AM
01-16-2023 11:13 AM
I understand those files need separate installation. Back to my original question, I am asking how to get my program to install them and point to their location without a LabVIEW install.
01-16-2023 11:15 AM
As a note to other readers, Windows 11 does not come with the two .dll files listed. My original question still applies to those .dll files as well.
01-16-2023 11:38 AM
Are you using 32bit LabVIEW or 64bit?