File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 29
29
@ where msbuild > " %TEMP% \msbuild.loc" 2 > nul && set /P MSBUILD = < " %TEMP% \msbuild.loc" & del " %TEMP% \msbuild.loc"
30
30
@ if exist " %MSBUILD% " set MSBUILD = " %MSBUILD% " & (set _Py_MSBuild_Source=PATH) & goto :found
31
31
32
- @ rem VS 2015 and earlier register MSBuild separately, so we can find it.
33
- @ rem Prefer MSBuild 14.0 over MSBuild 15.0, since the latter may not be able to find a VC14 install.
34
- @ reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v MSBuildToolsPath /reg:32 > nul 2 > nul
35
- @ if NOT ERRORLEVEL 1 @ for /F " tokens=1,2*" %% i in ('reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v MSBuildToolsPath /reg:32') DO @ (
36
- @ if " %% i" == " MSBuildToolsPath" @ if exist " %% k\msbuild.exe" @ (set MSBUILD=" %% k\msbuild.exe" )
37
- )
38
- @ if exist %MSBUILD% (set _Py_MSBuild_Source=registry) & goto :found
39
-
40
32
@ rem VS 2017 sets exactly one install as the "main" install, so we may find MSBuild in there.
41
33
@ reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v 15.0 /reg:32 > nul 2 > nul
42
34
@ if NOT ERRORLEVEL 1 @ for /F " tokens=1,2*" %% i in ('reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v 15.0 /reg:32') DO @ (
43
35
@ if " %% i" == " 15.0" @ if exist " %% k\MSBuild\15.0\Bin\msbuild.exe" @ (set MSBUILD=" %% k\MSBuild\15.0\Bin\msbuild.exe" )
44
36
)
45
37
@ if exist %MSBUILD% (set _Py_MSBuild_Source=Visual Studio 2017 registry) & goto :found
46
38
39
+ @ rem VS 2015 and earlier register MSBuild separately, so we can find it.
40
+ @ reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v MSBuildToolsPath /reg:32 > nul 2 > nul
41
+ @ if NOT ERRORLEVEL 1 @ for /F " tokens=1,2*" %% i in ('reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v MSBuildToolsPath /reg:32') DO @ (
42
+ @ if " %% i" == " MSBuildToolsPath" @ if exist " %% k\msbuild.exe" @ (set MSBUILD=" %% k\msbuild.exe" )
43
+ )
44
+ @ if exist %MSBUILD% (set _Py_MSBuild_Source=registry) & goto :found
45
+
47
46
48
47
@ exit /b 1
49
48
Original file line number Diff line number Diff line change 50
50
"test_d.msi" ,
51
51
"test_pdb.msi" ,
52
52
"tools.msi" ,
53
+ "ucrt.msi" ,
53
54
"Windows6.0-KB2999226-x64.msu" ,
54
55
"Windows6.0-KB2999226-x86.msu" ,
55
56
"Windows6.1-KB2999226-x64.msu" ,
Original file line number Diff line number Diff line change @@ -31,13 +31,17 @@ if "%1" NEQ "" echo Unexpected argument "%1" & exit /B 1
31
31
32
32
if not defined PLINK where plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
33
33
if not defined PLINK where /R " %ProgramFiles(x86)% \PuTTY" plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
34
+ if not defined PLINK where /R " %ProgramFiles% \PuTTY" plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
34
35
if not defined PLINK where /R " %ProgramFiles(x86)% " plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
36
+ if not defined PLINK where /R " %ProgramFiles% " plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
35
37
if not defined PLINK echo Cannot locate plink.exe & exit /B 1
36
38
echo Found plink.exe at %PLINK%
37
39
38
40
if not defined PSCP where pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
39
41
if not defined PSCP where /R " %ProgramFiles(x86)% \PuTTY" pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
42
+ if not defined PSCP where /R " %ProgramFiles% \PuTTY" pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
40
43
if not defined PSCP where /R " %ProgramFiles(x86)% " pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
44
+ if not defined PSCP where /R " %ProgramFiles% " pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
41
45
if not defined PSCP echo Cannot locate pscp.exe & exit /B 1
42
46
echo Found pscp.exe at %PSCP%
43
47
You can’t perform that action at this time.
0 commit comments