Last active
December 12, 2024 05:59
-
-
Save OwenMcDonnell/fc2b9b38c8fe691b678e1f6e930b812e to your computer and use it in GitHub Desktop.
install dotnet-uninstall-tool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "Installing dotnet-uninstall tool" | |
| Write-Host "Downloading..." | |
| $toolPath = "$env:TEMP\dotnet-uninstall-tool.msi" | |
| (New-Object Net.WebClient).DownloadFile('https://github.com/dotnet/cli-lab/releases/download/1.7.550802/dotnet-core-uninstall-1.7.550802.msi', $toolPath) | |
| Write-Host "Installing..." | |
| cmd /c start /wait msiexec /i "$toolPath" /q | |
| del $toolPath | |
| $env:path += ';C:\Program Files (x86)\dotnet-core-uninstall\' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment