Last active
February 4, 2019 11:28
-
-
Save pizycki/949a0b2dde34bdb7bcb71c0226d3f107 to your computer and use it in GitHub Desktop.
Spotify install script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iex ((New-Object System.Net.WebClient).DownloadString("https://gist.githubusercontent.com/pizycki/949a0b2dde34bdb7bcb71c0226d3f107/raw/SpotifyInstall.ps1")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (Test-Path("C:\IzzySpotify")) { | |
| rm "C:\IzzySpotify" -Recurse -Force | |
| } | |
| echo "Spotify will be installed in: C:\IzzySpotify" | |
| mkdir "C:\IzzySpotify" | out-null | |
| write "Downloading Spotify setup file..." | |
| iwr -Uri "https://download.spotify.com/SpotifyFullSetup.exe" -OutFile "C:\IzzySpotify\Installer.exe" | |
| write "Lanching setup..." | |
| Write-Warning "Setup will fail with error code 17. Just click OK button - the installation script will continue its work." | |
| Start-Process "C:\IzzySpotify\Installer.exe" -Wait | |
| rm "C:\IzzySpotify\Spotify" -ErrorAction Ignore -Force -Recurse | |
| write "Copying installation files..." | |
| cp "$env:APPDATA\Spotify" "C:\IzzySpotify" -Recurse | |
| write "Changing Spotify executable name" | |
| mv "C:\IzzySpotify\Spotify\Spotify.exe" "C:\IzzySpotify\Spotify\Sptfy.exe" | |
| write "Launching Spotify" | |
| ii "C:\IzzySpotify\Spotify\Sptfy.exe" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment