1 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
3 $msys_mingw_get_url = 'https://dotsrc.dl.osdn.net/osdn/mingw/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz'
6 Write-Host "Downloading and extracting mingw-get for MSYS"
7 Invoke-WebRequest -Uri $msys_mingw_get_url -OutFile C:\mingw-get.tar.xz
8 7z e C:\mingw-get.tar.xz -o"C:\\"
10 7z x C:\mingw-get.tar -o"C:\\MinGW"
13 if (!($res1 -and $res2)) {
14 Write-Host "Failed to extract mingw-get"
18 Remove-Item C:\mingw-get.tar.xz -Force
19 Remove-Item C:\mingw-get.tar -Force
22 Write-Host "Installing MSYS for Cerbero into C:/MinGW using mingw-get"
23 Start-Process -Wait C:\MinGW\bin\mingw-get.exe -ArgumentList 'install msys-base mingw32-base mingw-developer-toolkit'
25 Write-Host "Failed to install Msys for cerbero using MinGW"
29 Write-Host "MSYS/MinGW Install Complete"