We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde0ffa commit beb8cefCopy full SHA for beb8cef
.github/scripts/uninstall-dotnet-windows.ps1
@@ -9,8 +9,15 @@ $extractPath = Join-Path $pwd "dotnet-core-uninstall" # needs to be a new path
9
msiexec.exe /A dotnet-core-uninstall.msi TARGETDIR=$extractPath /QN /L*V log.txt
10
$uninstallToolPath = Join-Path $extractPath "dotnet-core-uninstall" "dotnet-core-uninstall.exe"
11
# wait for the tool to be ready
12
-while (-not (Test-Path $uninstallToolPath)) {
+$maxRetries = 30
13
+$retry = 0
14
+while (-not (Test-Path $uninstallToolPath) -and ($retry -lt $maxRetries)) {
15
Start-Sleep -Seconds 1
16
+ $retry++
17
+}
18
+if ($retry -eq $maxRetries) {
19
+ Write-Error "Uninstall tool was not found after $maxRetries seconds."
20
+ exit 1
21
}
22
23
# Perform uninstall
0 commit comments