From 6135d083284c7154aa7cd23175a47dcd5c47de1a Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Thu, 19 Aug 2021 22:22:48 +0300 Subject: [PATCH] Updating installation cache paths --- Install.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 3789290..a65f944 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -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 }