Solution
Occurrence of Error 21 when creating an installer points to a generic error and can be because of multiple reasons. It mostly arises out of missing source files or wrong file paths in DLLs as can be seen in the screenshot below :

Follow the steps below to resolve this error :
- Download and install DAQmx 17.6 drivers.
- Repair DAQmx drivers currently installed on your system. You can find the instructions to repair software here. If you have NI Package manager installed, follow steps mentioned here to repair NI software.
- Uninstall and Reinstall DAQmx drivers.
Note : Check DAQmx compatibility with
LabVIEW version and
Operating system if versions of LabVIEW or OS being used are different.