     if pathToISCC.length > 0
       return callback(pathToISCC)
 
-    which = spawn @which, ["ISCC"]
+    which = spawn @which(), ["ISCC"]
 
     which.stdout.on 'data', ( data ) ->
       path = data.toString().trim()

# Dependencies
{spawn} = require 'child_process'
os = require 'os'



module.exports = InnoSetupCore =
  config:

    if os.platform() is 'win32'
      return "where"
    
    return "which"
