throw[WingetFailedInstall]::new('Failed to install!')
}
Write-Host"Failure detected while installing via GitHub method. Your computer cannot run winget. Please email help@learncodethehardway.com to help find out why."-ForegroundColorRed
throw[WingetFailedInstall]::new('Failed to install!')
}
}
@ -235,7 +205,10 @@ if(-not $isAdmin) {
)
}
Write-Warning"About to install winget"
Write-Warning"About to install winget. Winget is a Microsoft open source package manager."
Write-Warning"To install Winget this script will temporarily launch in Administrator mode, then get out of it."
Write-Warning"If you already have Winget then this will only check that you have it, or upgrade it."
Write-Warning"If you'd prefer to not use it then abort now and good luck getting everything installed."
Read-Host-Prompt"Press any key to continue, or CTRL-C to abort"|Out-Null
@ -256,14 +229,11 @@ $installs=@(
'Microsoft.VCRedist.2015+.x64'
)
$choco_installs=@()
Write-Warning"About to install the following software:"
Write-Warning"This will use winget and chocolatey to do the installs."
Write-Warning"This will use winget to do the installs. If you already have this software installed then winget should only upgrade them. If you don't want this then abort now."
Read-Host-Prompt"Press any key to continue, or CTRL-C to abort"|Out-Null
Write-Warning"Here's the version that Winget will install:"
wingetsearchBrechtSanders.WinLibs.POSIX.UCRT.LLVM
Write-Warning"--- If you want me to replace your install with this version, then stop and"
Write-Warning"delete the $winlibsPath directory before hitting ENTER to continue."
Write-Warning"!!! If you do NOT want to replace this directory then hit CTRL-C now."
Read-Host-Prompt"Press any key to continue, or CTRL-C to abort"|Out-Null
}
Write-Warning"!! Installing WinLibs in $winlibsPath"
Write-Warning"This has to be installed this way because winget won't add it to the path so I have to do it manually. If you don't want this, then hit CTRL-C and install WinLibs yourself."
Read-Host-Prompt"Press any key to continue, or CTRL-C to abort"|Out-Null