How Do I Include Custom Driver Files in LabVIEW Application Builder Installer?

Updated May 20, 2024

Reported In


  • LabVIEW Application Builder Module
  • LabVIEW Professional



Issue Details

I have a device that I created a custom driver for. I am creating an installer using Application Builder and I want to properly add my custom driver, to allow for automatic driver install on the deployment computer and let the future users to see my device when they plug it in.

I created a custom driver using the NI-VISA Driver Wizard and it produced an INF and INI file that were automatically installed on my development machine. I want the same files to be automatically installed on the deployment machine. What are these files and how do I include them in the installer properly?


An INF file, or Setup Information File, is a plain text file used by Windows mostly for device driver installation for hardware components. You can include the INI (initialization) file in the project, but it is not necessary.

There are two INF files generated by the NI-VISA Driver Development Wizard:
  • one for Windows XP/2000 
  • another for Windows 7/Vista.
They will only work for their respective operating systems.

To install the driver on a Windows XP/2000 machine, you must copy the file into the SystemRoot\inf folder. The device must not be plugged into the computer prior to this; otherwise the device will need to be removed from the Windows Device Manager.

To install the driver on a Windows 7/Vista machine, right-click the file and select Install so that the contents of the file will be applied to the system. The following steps show how to include the INF file in the installer and place them in the system\inf folder on the installation machine. Although the example shows two INF files, one each for the respective operating systems, you will only need to include the one(s) generated by the wizard that are necessary for the application.


  1. You must first include the INF files in the project and create your executable. Right-click on Build Specification and select NEW -> Installer.

  2. In the Installer properties, under the Destination category, create the required folder to place the INF files into. To do this, you must select the Add Absolute Path button and specify the destination path as C:\Windows\inf

  3. In the Source Files category, the INF folder will appear in the Destination View on the right. Expand the folders in the Project Files View and place the INF files into the INF folder; then specify the destination of the other files.

  4. Configure any other settings and then Build the installer. Your INF files will now be placed in the appropriate folders on the installation machine.