mirror of
https://github.com/mrpond/BlockTheSpot.git
synced 2025-05-11 18:36:47 +02:00
[skip ci] Add prompt for updating Spotify before patching (optional) (#264)
This commit is contained in:
parent
ae5eb315a3
commit
aed3f921f8
1 changed files with 15 additions and 1 deletions
16
install.ps1
16
install.ps1
|
@ -105,9 +105,23 @@ Expand-Archive -Force -LiteralPath "$PWD\xpui.zip" -DestinationPath $PWD
|
|||
Remove-Item -LiteralPath "$PWD\xpui.zip"
|
||||
#>
|
||||
$spotifyInstalled = (Test-Path -LiteralPath $SpotifyExecutable)
|
||||
if (-not $spotifyInstalled) {
|
||||
$update = $false
|
||||
if ($spotifyInstalled) {
|
||||
$ch = Read-Host -Prompt "Optional - Update Spotify to the latest version. (Might already be updated). (Y/N) "
|
||||
if ($ch -eq 'y') {
|
||||
$update = $true
|
||||
} else {
|
||||
Write-Host @'
|
||||
Won't try to update Spotify.
|
||||
'@
|
||||
}
|
||||
} else {
|
||||
Write-Host @'
|
||||
Spotify installation was not detected.
|
||||
'@
|
||||
}
|
||||
if (-not $spotifyInstalled -or $update) {
|
||||
Write-Host @'
|
||||
Downloading Latest Spotify full setup, please wait...
|
||||
'@
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue