     error ?= new Error("Command failed: #{signal ? code}") if code isnt 0
     error?.code ?= code
     error?.stdout ?= stdout
-    callback(error, stdout)
+    error?.stderr ?= stderr
+    callback(error, stdout, stderr)
 
 # Spawn reg.exe and callback when it completes
 spawnReg = (args, callback) ->

  spawnedProcess = ChildProcess.spawn(command, args)

  stdout = ''
  spawnedProcess.stdout.on 'data', (data) -> stdout += data

  error = null
  spawnedProcess.on 'error', (processError) -> error ?= processError

        callback()

  getPath = (callback) ->
    spawnReg ['query', environmentKeyPath, '/v', 'Path'], (error, stdout, stderr) ->
      console.log stderr
      return callback(error) if error?

      lines = stdout.split(/[\r\n]+/).filter (line) -> line
