Solution
You will get this error if you have selected to install
Measurement Studio for Visual C++ 200xSupport from the Features list in the driver installer and you do not have the Measurement Studio for Visual C++ 200
x Support installed. In order to install Visual C++ support for an NI hardware driver, you must first install Measurement Studio Support for Visual C++ for your version of Visual Studio. This feature installs support for Visual C++ MFC, which is now considered a
legacy language.
If you do not intend to use Visual C++ MFC and you are seeing this error, simply deselect
Measurement Studio for Visual C++ 200x Support from the Features list in the driver installer. For example, if you are installing NI-VISA from the Device Drivers DVD, you will need to select
Do not install this feature for
Instrument Control»NI-VISA x.x»Development Support»Measurement Studio for Visual C++ 200x Support, as shown in Figure 1.
Figure 1. Features tree with Measurement Studio for Visual C++ 2008
After deselecting this option for each NI driver that you are installing, you will be able to proceed with the installation.
If you do intend to use Visual C++ MFC with your NI hardware driver, you must first install Measurement Studio support for Visual C++ MFC. You can do this in one of two ways:
- If you are using Measurement Studio 2009 or earlier and need support for Visual C++ MFC, run the installer for Measurement Studio again and explicitly select the option for Measurement Studio Visual C++ 200x Support, as shown in Figure 2.
Figure 2. Measurement Studio Visual C++ 2008 Support in Features tree
Complete the installation with this feature selected and you will then be able to install the Visual C++ support for the same version of Visual Studio from the driver installer.