diff --git a/desmume/src/frontend/windows/defaultconfig/make_scmrev.h.js b/desmume/src/frontend/windows/defaultconfig/make_scmrev.h.js index a6c1c780c..087a9f3d9 100644 --- a/desmume/src/frontend/windows/defaultconfig/make_scmrev.h.js +++ b/desmume/src/frontend/windows/defaultconfig/make_scmrev.h.js @@ -38,6 +38,10 @@ function GetGitExe() if (oFS.FileExists(gitexe)) { return gitexe; } + gitexe = wshShell.ExpandEnvironmentStrings("%ProgramW6432%") + msyspath; + if (oFS.FileExists(gitexe)) { + return gitexe; + } WScript.Echo("Cannot find git or git.cmd, check your PATH:\n" + wshShell.ExpandEnvironmentStrings("%PATH%"));