This example is a Microsoft Visual Studio solution contains an updated version of the example that ships with Measurement Studio 2013 for Visual Studio 2012.
The shipping example for the WiX installer includes a number of different libraries that are used in Measurement Studio 2013. This is in the file Product.wxs.
This new example provides a template for the NI Driver Merge Modules. By default, these are commented out. Please note these are just the merge modules, not the drivers. In order to use hardware, one must install the runtime version of the desired drivers or the full versions of the drivers to the target machine.
Also note if one is building an installer for a .NET 4.5 applications, one may need to install the .NET 4.5 runtime framework to the target machine. This installer for will make a file called Setup.msi. Upon running the MSI, your .NET application will be installed just like any other Windows application. As a final note, this example is only for Visual Studio 2012.
Microsoft Visual Studio 2012 (or compatible)
National Instruments Measurement Studio 2013 (or compatible)
WiX 3.8 (or compatible)
Steps to Implement or Execute Code
Download extract the attached file.
Open All Libraries.2012.sln
Select the "Product.wxs" file
Enter GUID for ComponentId_ExampleApplication_Assembly, ComponentId_ExampleApplication_Shortcut, and Product_UpgradeCode for both x86 and x64 architectures.
Build the Solution
Depending on your build setting, the installer will be located in <Application Directory>\2012\Setup\bin\x86\Debug\Setup.msi
Take the MSI to a target machine and deploy it.
**This document has been updated to meet the current required format for the NI Code Exchange. **