LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.dll file only included if referenced not all the time

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.

 

CatDoe_2-1673884244417.png

 

CatDoe_3-1673884262384.png

 

0 Kudos
Message 1 of 26
(1,927 Views)

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?

0 Kudos
Message 2 of 26
(1,913 Views)

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.

 

 

George Zou
0 Kudos
Message 3 of 26
(1,909 Views)

How can I point the executable to find them automatically?

0 Kudos
Message 4 of 26
(1,903 Views)

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.

 

George Zou
0 Kudos
Message 5 of 26
(1,894 Views)

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.

0 Kudos
Message 6 of 26
(1,890 Views)

zou_0-1673889065275.png

 

George Zou
0 Kudos
Message 7 of 26
(1,878 Views)

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.

0 Kudos
Message 8 of 26
(1,873 Views)

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.

0 Kudos
Message 9 of 26
(1,872 Views)

Are you using 32bit LabVIEW or 64bit?

 

George Zou
0 Kudos
Message 10 of 26
(1,847 Views)