diff --git a/MakeInstall.bat b/MakeInstall.bat index f7c0391..5edfb69 100644 --- a/MakeInstall.bat +++ b/MakeInstall.bat @@ -115,7 +115,7 @@ echo # Installing Python # echo ### ### echo. echo Gathering info from https://www.python.org/downloads/windows/... -powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www.python.org/downloads/windows/','%TEMP%\pyurl.txt')" +powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object System.Net.WebClient).DownloadFile('https://www.python.org/downloads/windows/','%TEMP%\pyurl.txt')" if not exist "%TEMP%\pyurl.txt" ( goto checkpy ) @@ -154,7 +154,7 @@ REM At this point - we should have the version number. REM We can build the url like so: "https://www.python.org/ftp/python/[version]/python-[version]-amd64.exe" set "url=https://www.python.org/ftp/python/!release!/python-!release!-amd64.exe" REM Now we download it with our slick powershell command -powershell -command "(new-object System.Net.WebClient).DownloadFile('!url!','%TEMP%\pyinstall.exe')" +powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object System.Net.WebClient).DownloadFile('!url!','%TEMP%\pyinstall.exe')" REM If it doesn't exist - we bail if not exist "%TEMP%\pyinstall.exe" ( goto checkpy