mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-23 19:40:19 +10:00
Hide Progress Bars
Hide Progress Bars when uninstalling Spotify from Microsoft Store (sometimes it failed)
This commit is contained in:
@@ -40,17 +40,17 @@ $win8 = $win_os -match "\windows 8\b"
|
|||||||
|
|
||||||
if ($win11 -or $win10 -or $win8_1 -or $win8) {
|
if ($win11 -or $win10 -or $win8_1 -or $win8) {
|
||||||
|
|
||||||
|
|
||||||
# Remove Spotify Windows Store If Any
|
# Remove Spotify Windows Store If Any
|
||||||
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic) {
|
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic) {
|
||||||
Write-Host 'The Microsoft Store version of Spotify has been detected which is not supported.'`n
|
Write-Host 'The Microsoft Store version of Spotify has been detected which is not supported.'`n
|
||||||
$ch = Read-Host -Prompt "Uninstall Spotify Windows Store edition (Y/N) "
|
$ch = Read-Host -Prompt "Uninstall Spotify Windows Store edition (Y/N) "
|
||||||
if ($ch -eq 'y') {
|
if ($ch -eq 'y') {
|
||||||
|
$ProgressPreference = 'SilentlyContinue' # Hiding Progress Bars
|
||||||
Write-Host 'Uninstalling Spotify.'`n
|
Write-Host 'Uninstalling Spotify.'`n
|
||||||
Get-AppxPackage -Name SpotifyAB.SpotifyMusic | Remove-AppxPackage
|
Get-AppxPackage -Name SpotifyAB.SpotifyMusic | Remove-AppxPackage
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Read-Host "Exiting...`nPress any key to exit..."
|
Read-Host "Exiting..."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,17 +40,17 @@ $win8 = $win_os -match "\windows 8\b"
|
|||||||
|
|
||||||
if ($win11 -or $win10 -or $win8_1 -or $win8) {
|
if ($win11 -or $win10 -or $win8_1 -or $win8) {
|
||||||
|
|
||||||
|
|
||||||
# Удалить Spotify Windows Store если он есть
|
# Удалить Spotify Windows Store если он есть
|
||||||
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic) {
|
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic) {
|
||||||
Write-Host 'Обнаружена версия Spotify из Microsoft Store, которая не поддерживается.'`n
|
Write-Host 'Обнаружена версия Spotify из Microsoft Store, которая не поддерживается.'`n
|
||||||
$ch = Read-Host -Prompt "Хотите удалить Spotify Microsoft Store ? (Y/N) "
|
$ch = Read-Host -Prompt "Хотите удалить Spotify Microsoft Store ? (Y/N) "
|
||||||
if ($ch -eq 'y') {
|
if ($ch -eq 'y') {
|
||||||
|
$ProgressPreference = 'SilentlyContinue' # Скрывает Progress Bars
|
||||||
Write-Host 'Удаление Spotify.'`n
|
Write-Host 'Удаление Spotify.'`n
|
||||||
Get-AppxPackage -Name SpotifyAB.SpotifyMusic | Remove-AppxPackage
|
Get-AppxPackage -Name SpotifyAB.SpotifyMusic | Remove-AppxPackage
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Read-Host "Завершение работы скрипта...`nНажмите любую клавишу для выхода..."
|
Read-Host "Завершение работы скрипта..."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user