Revision 5aef65a9 deps/npm/node_modules/node-gyp/lib/build.js

View differences:

deps/npm/node_modules/node-gyp/lib/build.js
117 117
   */
118 118

  
119 119
  function findMsbuild () {
120
    log.verbose('could not find "msbuild.exe". guessing location')
120
    log.verbose('could not find "msbuild.exe" in PATH - finding location in registry')
121 121
    var notfoundErr = new Error('Can\'t find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed?')
122
    exec('reg query HKLM\\Software\\Microsoft\\MSBuild\\ToolsVersions /s /f MSBuildToolsPath /e /t REG_SZ', function (err, stdout, stderr) {
122
    exec('reg query "HKLM\\Software\\Microsoft\\MSBuild\\ToolsVersions" /s', function (err, stdout, stderr) {
123 123
      var reVers = /Software\\Microsoft\\MSBuild\\ToolsVersions\\([^\r]+)\r\n\s+MSBuildToolsPath\s+REG_SZ\s+([^\r]+)/gi
124 124
        , msbuilds = []
125 125
        , r

Also available in: Unified diff