Create an Installer of NI Products and Drivers With Third Party Executables

Updated Jun 15, 2018

Reported In

Software

  • LabVIEW
  • Measurement Studio

Driver

  • NI-DAQmx

Operating System

  • Windows

Programming Language

  • C# .NET

Other

Microsoft VisualStudio

Issue Details

  • I have a compiled executable built in a development environment other than LabVIEW, which uses NI drivers to work properly. I want to have an installer that contains both the NI drivers, as well as my third party executable.
  • I created a program in Visual Studio and deployed it as executable. Nevertheless it uses the NI-DAQmx .NET functions, which I need in order to run the application. How do I create an installer that includes both in a single package?

Solution

You can create an installer for your application using either Measurement Studio, or LabVIEW.

 

A) Using Measurement Studio

 

Measurement Studio is designed for engineers and scientists building test, measurement, and control applications using Visual Studio. Follow the next guide to create your installer in Measurement Studio to include your application, as well as the DAQmx driver: Getting Started with Measurement Studio Installer Builder

 

B) Using the LabVIEW Application Builder

 
  1. Download and Install NI LabVIEW
  2. Create a Blank LabVIEW Project


 


 

  1. Add your. EXE file to the project, under My Computer



 

  1. Right click on Build Specifications and select New > Installer

Note: You might be asked to save the project before building the installer. Save your project in an empty folder, to keep the file organization as clear as possible.



 

  1. In the properties window, configure the Build specification name, Product name, and Installer destination.



 

  1. Select the Source Files category
  2. Add your executable to the Destination View in the location desired



 

  1. Select the Additional Installers category
  2. Uncheck the Automatically select recommended installer box
  3. Select the NI-DAQmx Runtime with Configuration Support, and the other required software you consider needed for your application to run

Note: Make sure you select the correct .NET language runtime and Framework versions, according to the characteristics of your C# application.

 



 

  1. Click OK
  2. Right click in the Installer and select Build



 

  1. When the build finishes, select Explore to open the folder with the installer file.



 

Additional Information

When deciding which of the two previous methods is better for your application, take into account the languages you currently use, and the benefits of both solutions.

 

If you have experience with text-based languages and prefer using Microsoft VisualStudio, then Measurement Studio should be better for your application.

 

If you have experience working with LabVIEW, you're not using a C based language, or want a solution you can integrate with other National Instruments products, try using the LabVIEW Application Builder.

Additionally, it is helpful to have the same versions of Windows when deploying Measurement Studio installers. This should work properly but can have issues in different .NET combined in different installations.

WAS THIS ARTICLE HELPFUL?

Not Helpful