bin/lib/check_reqs.js
function getInstalledWindowsSdks () {
    var installedSdks = [];
    return spawn('reg', ['query', 'HKLM\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows', '/s', '/v', 'InstallationFolder', '/reg:32'])
        .fail(function () { return ''; })
        .then(function (output) {
            var re = /\\Microsoft SDKs\\Windows\\v(\d+\.\d+)\s*InstallationFolder\s+REG_SZ\s+(.*)/gim;
            var match;
            while ((match = re.exec(output))) {
                var sdkPath = match[2];
                // Verify that SDKs is really installed by checking SDKManifest file at SDK root
                if (shell.test('-e', path.join(sdkPath, 'SDKManifest.xml'))) {
                    installedSdks.push(Version.tryParse(match[1]));
                }
            }
        }).thenResolve(installedSdks);
}
function getInstalledWindowsSdks () {
    var installedSdks = [];
    return spawn('reg', ['query', 'HKLM\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows', '/s', '/v', 'InstallationFolder', '/reg:32'])
        .fail(function () { return ''; })
        .then(function (output) {
            var re = /\\Microsoft SDKs\\Windows\\v(\d+\.\d+)\s*InstallationFolder\s+REG_SZ\s+(.*)/gim;
            var match;
            while ((match = re.exec(output))) {
                var sdkPath = match[2];
                // Verify that SDKs is really installed by checking SDKManifest file at SDK root
                if (shell.test('-e', path.join(sdkPath, 'SDKManifest.xml'))) {
                    installedSdks.push(Version.tryParse(match[1]));
                }
            }
        }).thenResolve(installedSdks);
}
function getInstalledWindowsSdks ( ) { var installedSdks = [ ] ; return spawn ( 'reg' , [ 'query' , 'HKLM\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows' , '/s' , '/v' , 'InstallationFolder' , '/reg:32' ] ) . fail ( function ( ) { return '' ; } ) . then ( function ( output ) { var re = / \\Microsoft SDKs\\Windows\\v(\d+\.\d+)\s*InstallationFolder\s+REG_SZ\s+(.*) / gim ; var match ; while ( ( match = re . exec ( output ) ) ) { var sdkPath = match [ 2 ] ; // Verify that SDKs is really installed by checking SDKManifest file at SDK root if ( shell . test ( '-e' , path . join ( sdkPath , 'SDKManifest.xml' ) ) ) { installedSdks . push ( Version . tryParse ( match [ 1 ] ) ) ; } } } ) . thenResolve ( installedSdks ) ; }
Gets list of installed Windows SDKs

@return  {Version[]}  List of installed SDKs' versions
Gets list of installed Windows SDKs