diff --git a/coin/provisioning/common/windows/windows_removethemall.ps1 b/coin/provisioning/common/windows/windows_removethemall.ps1 index 0e584900..96c448e3 100644 --- a/coin/provisioning/common/windows/windows_removethemall.ps1 +++ b/coin/provisioning/common/windows/windows_removethemall.ps1 @@ -56,6 +56,8 @@ Function Remove-Path { } # Remove Android sdk and ndk -dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" } -[Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User") -[Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User") +If (Test-Path "c:\utils") { + dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" } + [Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User") + [Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User") +}