diff --git a/src/filesystem/Filesystem.php b/src/filesystem/Filesystem.php --- a/src/filesystem/Filesystem.php +++ b/src/filesystem/Filesystem.php @@ -911,7 +911,13 @@ if (phutil_is_windows()) { list($err, $stdout) = exec_manual('where %s', $binary); $stdout = phutil_split_lines($stdout); - if (!$stdout) { + + // If `where %s` could not find anything, check for relative binary + if ($err) { + $path = Filesystem::resolvePath($binary); + if (Filesystem::pathExists($path)) { + return $path; + } return null; } $stdout = head($stdout);