Issue #28846: Various installer fixes
diff --git a/PCbuild/build.bat b/PCbuild/build.bat
index 88b1f06..98fa267 100644
--- a/PCbuild/build.bat
+++ b/PCbuild/build.bat
@@ -105,6 +105,9 @@
     )

 )

 

+if not exist "%HG%" where hg > "%TEMP%\hg.loc" 2> nul && set /P HG= < "%TEMP%\hg.loc" & del "%TEMP%\hg.loc"

+if not exist "%HG%" echo Cannot find Mercurial on PATH && exit /B 1

+

 rem Setup the environment

 call "%dir%env.bat" %vs_platf% >nul

 

@@ -142,6 +145,7 @@
  /p:IncludeExternals=%IncludeExternals%^

  /p:IncludeSSL=%IncludeSSL% /p:IncludeTkinter=%IncludeTkinter%^

  /p:UseTestMarker=%UseTestMarker%^

+ /p:HG="%HG%"^

  %1 %2 %3 %4 %5 %6 %7 %8 %9

 

 @echo off