File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ $url = $asset.browser_download_url
5
5
Invoke-WebRequest - Uri $url - OutFile $ (Split-Path $url - Leaf)
6
6
7
7
# Prepare uninstall tool
8
- msiexec.exe / A dotnet- core- uninstall.msi TARGETDIR= $pwd / QN / L* V log.txt
9
- $uninstallToolPath = Join-Path $pwd " dotnet-core-uninstall\dotnet-core-uninstall.exe"
8
+ $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 )) {
13
+ Start-Sleep - Seconds 1
14
+ }
10
15
11
16
# Perform uninstall
12
17
& $uninstallToolPath remove -- all
You can’t perform that action at this time.
0 commit comments