From 6bbddd20d76d61606bea5a0133c950cc44c370d3 Mon Sep 17 00:00:00 2001 From: Shamil Mubarakshin <127750046+shamil-mubarakshin@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:11:16 +0100 Subject: [PATCH] [windows] Remove Windows\Installer\* folder cleanup (#11144) --- images/windows/scripts/build/Invoke-Cleanup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/windows/scripts/build/Invoke-Cleanup.ps1 b/images/windows/scripts/build/Invoke-Cleanup.ps1 index 56a9ce433fc2..f9bc431b17ba 100644 --- a/images/windows/scripts/build/Invoke-Cleanup.ps1 +++ b/images/windows/scripts/build/Invoke-Cleanup.ps1 @@ -15,7 +15,7 @@ Write-Host "Clean up various directories" "$env:SystemRoot\logs", "$env:SystemRoot\winsxs\manifestcache", "$env:SystemRoot\Temp", - "$env:SystemRoot\Installer\*", + $(if(Test-IsWin25){"$env:SystemRoot\Installer\*"}), "$env:SystemDrive\Users\$env:INSTALL_USER\AppData\Local\Temp", "$env:TEMP", "$env:AZURE_CONFIG_DIR\logs",