Updating installation cache paths

This commit is contained in:
amd64fox
2021-08-19 22:22:48 +03:00
committed by GitHub
parent f7bdc01339
commit 6135d08328

View File

@@ -132,10 +132,11 @@ if (-not $spotifyInstalled) {
$ErrorActionPreference = 'SilentlyContinue' # Команда гасит легкие ошибки
if ($win7) {
# Удалить инсталятор после установки
if ($win8 -or $win7) {
get-childitem -path "$env:LOCALAPPDATA\Microsoft\Windows\Temporary Internet Files\" -Recurse -Force -Filter "SpotifyFullSetup*" | remove-item -Force
}
if ($win10) {
if ($win11 -or $win10 -or $win8_1) {
get-childitem -path "$env:LOCALAPPDATA\Microsoft\Windows\INetCache\" -Recurse -Force -Filter "SpotifyFullSetup*" | remove-item -Force
}