mirror of
https://github.com/mrpond/BlockTheSpot.git
synced 2025-05-11 18:36:47 +02:00
Fix PS v7 compatibility
This fixes PowerShell +v7.0.0 compatibility issue
This commit is contained in:
parent
be4e443aae
commit
537be5f902
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ Write-Host 'Stopping Spotify...'`n
|
|||
Stop-Process -Name Spotify
|
||||
Stop-Process -Name SpotifyWebHelper
|
||||
|
||||
if ($PSVersionTable.PSVersion.Major -ge 7)
|
||||
{
|
||||
Import-Module Appx -UseWindowsPowerShell
|
||||
}
|
||||
|
||||
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic) {
|
||||
Write-Host @'
|
||||
The Microsoft Store version of Spotify has been detected which is not supported.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue