Access Violation 0xC0000005 When Running a Custom Installer Made with LabVIEW

Updated May 28, 2024

Reported In

Software

  • LabVIEW

Issue Details

I built an EXE file with LabVIEW Application Builder and also made an installer that includes this EXE as well as other NI drivers such as NI-CAN 18.5. When running this installer on a clean environment, the installation fails with an Access Violation 0xC0000005. How can I resolve this issue?

Solution

The Access Violation is happening because some NI drivers includes a feature to link itself with NI Package Manager software, but NI Package Manager is not already installed on the PC. In order to avoid this Access Violation, be sure to install NI Package Manager before running your installer.
The installer for the latest NI Package Manager can be found here