mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
Closing PowerShell window
- Fixed closing of the PowerShell window at the end of the installation https://github.com/amd64fox/SpotX/issues/73
This commit is contained in:
+11
-6
@@ -480,7 +480,8 @@ function downloadScripts($param1) {
|
|||||||
Pop-Location
|
Pop-Location
|
||||||
Start-Sleep -Milliseconds 200
|
Start-Sleep -Milliseconds 200
|
||||||
Remove-Item -Recurse -LiteralPath $tempDirectory
|
Remove-Item -Recurse -LiteralPath $tempDirectory
|
||||||
exit
|
Pause
|
||||||
|
Exit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -545,7 +546,8 @@ if ($win11 -or $win10 -or $win8_1 -or $win8) {
|
|||||||
}
|
}
|
||||||
if ($ch -eq 'n') {
|
if ($ch -eq 'n') {
|
||||||
Read-Host ($lang).StopScrpit
|
Read-Host ($lang).StopScrpit
|
||||||
exit
|
Pause
|
||||||
|
Exit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -694,6 +696,7 @@ if ($spotifyInstalled) {
|
|||||||
Pop-Location
|
Pop-Location
|
||||||
Start-Sleep -Milliseconds 200
|
Start-Sleep -Milliseconds 200
|
||||||
Remove-Item -Recurse -LiteralPath $tempDirectory
|
Remove-Item -Recurse -LiteralPath $tempDirectory
|
||||||
|
Pause
|
||||||
Exit
|
Exit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1057,7 +1060,8 @@ if ($test_spa -and $test_js) {
|
|||||||
Write-Host ($lang).Error -ForegroundColor Red
|
Write-Host ($lang).Error -ForegroundColor Red
|
||||||
Write-Host ($lang).FileLocBroken
|
Write-Host ($lang).FileLocBroken
|
||||||
Write-Host ($lang).StopScrpit
|
Write-Host ($lang).StopScrpit
|
||||||
exit
|
pause
|
||||||
|
Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-Path $xpui_js_patch) {
|
if (Test-Path $xpui_js_patch) {
|
||||||
@@ -1107,7 +1111,8 @@ if (Test-Path $xpui_js_patch) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host ($lang).NoRestore`n
|
Write-Host ($lang).NoRestore`n
|
||||||
exit
|
Pause
|
||||||
|
Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1219,7 +1224,8 @@ If (Test-Path $xpui_spa_patch) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host ($lang).NoRestore2`n
|
Write-Host ($lang).NoRestore2`n
|
||||||
exit
|
Pause
|
||||||
|
Exit
|
||||||
}
|
}
|
||||||
$spotify_exe_bak_patch = "$env:APPDATA\Spotify\Spotify.bak"
|
$spotify_exe_bak_patch = "$env:APPDATA\Spotify\Spotify.bak"
|
||||||
$test_spotify_exe_bak = Test-Path -Path $spotify_exe_bak_patch
|
$test_spotify_exe_bak = Test-Path -Path $spotify_exe_bak_patch
|
||||||
@@ -1527,4 +1533,3 @@ if ($cache_install) {
|
|||||||
if ($start_spoti) { Start-Process -WorkingDirectory $spotifyDirectory -FilePath $spotifyExecutable }
|
if ($start_spoti) { Start-Process -WorkingDirectory $spotifyDirectory -FilePath $spotifyExecutable }
|
||||||
|
|
||||||
Write-Host ($lang).InstallComplete`n -ForegroundColor Green
|
Write-Host ($lang).InstallComplete`n -ForegroundColor Green
|
||||||
exit
|
|
||||||
|
|||||||
Reference in New Issue
Block a user