Spotify is an audio streaming and media services provider. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Spotify from the command line using the EXE installer.
How to Install Spotify Silently
Spotify Silent Install (EXE)
- Navigate to: https://download.spotify.com/SpotifyFullSetup.exe
- Download the SpotifyFullSetup.exe to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
SpotifyFullSetup.exe /extract "C:\Program Files\Spotify"
- Press Enter
Create an Spotify Start Menu Shortcut with Windows PowerShell
- Open Notepad or your favorite text editor
- Add the following lines:
$TargetFile = "$envProgramFiles\Spotify\Spotify.exe" $ShortcutFile = "$envAllUsersProfile\Microsoft\Windows\Start Menu\Programs\Spotify\Spotify.lnk" $WScriptShell = New-Object -ComObject WScript.Shell $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile) $Shortcut.TargetPath = $TargetFile $Shortcut.Save()
- Save the file to C:\Downloads\Spotify and name it: SpotifyStartMenuSC.ps1
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads\Spotify folder
- Enter the following command:
Powershell.exe -ExecutionPolicy ByPass -File ".\SpotifyStartMenuSC.ps1"
Create an Spotify Desktop Shortcut with Windows PowerShell
- Open Notepad or your favorite text editor
- Add the following lines:
$TargetFile = "$envProgramFiles\Spotify\Spotify.exe" $ShortcutFile = "$envCommonDesktop\Spotify.lnk" $WScriptShell = New-Object -ComObject WScript.Shell $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile) $Shortcut.TargetPath = $TargetFile $Shortcut.Save()
- Save the file to C:\Downloads\Spotify and name it: SpotifyDesktopSC.ps1
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads\Spotify folder
- Enter the following command:
Powershell.exe -ExecutionPolicy ByPass -File ".\SpotifyDesktopSC.ps1"
Software Title: | Spotify |
Vendor: | Spotify AB |
Architecture: | x86_x64 |
Installer Type: | EXE |
Silent Install Switch (Program Files) |
|
Silent Install Switch (User Profile) |
|
Silent Uninstall Switch (Program Files) | "%ProgramFiles%\Spotify\Spotify.exe" /uninstall /silent |
Silent Uninstall Switch (User Profile) | "%AppData%\Spotify\Spotify.exe" /uninstall /silent |
Download Link: | https://download.spotify.com/SpotifyFullSetup.exe |
PowerShell Script: | https://silentinstallhq.com/spotify-install-and-uninstall-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website.
How to Uninstall Spotify Silently
Check out the Spotify Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
Spotify Silent Uninstall (Program Files)
"%ProgramFiles%\Spotify\Spotify.exe" /uninstall /silent |
Spotify Silent Uninstall (User Profile)
"%AppData%\Spotify\Spotify.exe" /uninstall /silent |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.