diff --git a/images/windows/scripts/build/Invoke-Cleanup.ps1 b/images/windows/scripts/build/Invoke-Cleanup.ps1 index f9bc431b17ba..7616c218e296 100644 --- a/images/windows/scripts/build/Invoke-Cleanup.ps1 +++ b/images/windows/scripts/build/Invoke-Cleanup.ps1 @@ -15,7 +15,6 @@ Write-Host "Clean up various directories" "$env:SystemRoot\logs", "$env:SystemRoot\winsxs\manifestcache", "$env:SystemRoot\Temp", - $(if(Test-IsWin25){"$env:SystemRoot\Installer\*"}), "$env:SystemDrive\Users\$env:INSTALL_USER\AppData\Local\Temp", "$env:TEMP", "$env:AZURE_CONFIG_DIR\logs", @@ -52,6 +51,8 @@ if ($LASTEXITCODE -ne 0) { if (Test-IsWin25) { $directoriesToCompact = @( + "C:\Program Files (x86)\Android", + "C:\Program Files\dotnet", "$env:SystemRoot\assembly", "$env:SystemRoot\WinSxS" )