Archived:Windows SDK Error (-12) when Installing LabVIEW on Windows 7

Updated Feb 5, 2018

National Instruments does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Reported In


  • LabVIEW Full
  • LabVIEW Professional
  • LabVIEW Base

Operating System

  • Windows

Issue Details

I am trying to install an older version of LabVIEW (8.6, 8.5, etc) on Windows 7 and receive the following error when installing: 

*** Error: Windows SDK function returned an error. (Error Code -12).


Only LabVIEW 2009 and later are officially supported on Windows 7.  However, some older versions of LabVIEW work with Windows 7.

The error message *** Error: Windows SDK function returned an error. (Error Code -12) can occur if you install LabVIEW from the main Setup.exe file that is executed with Autorun after you have put the CD/DVD into your PC.

In order to prevent this error from occurring, first try to manually run the Setup.exe located in the top level directory of the CD/DVD. If that does not work, you can try installing LabVIEW and additional modules/toolkits from their individual setup.exe files located on the CD/DVD in the Distributionsdirectory. For example, if you are only installing LabVIEW 8.6.1, the file path will be as follows:D:\Distributions\LabVIEW861\setup.exe (assuming the D Drive is the location of your CD/DVD) .

Note: The file path for setup.exe may differ depending on the distribution you acquire. For example, there may not be a Distributions folder if you acquired the media from a third-party.


Not Helpful