Giter Club home page Giter Club logo

chocolatey-spotify-installation-fix's Introduction

Chocolatey-Spotify-Installation-Fix

This Scripts allows you to fix the issue if you can't install Spotify because of the hanging scheduled task. Might not work on Windows 7

Error desciption

If Spotify is installed over Chocolatey, it might hang at this point:

SUCCESS: The scheduled task "spotify" has successfully been created.
SUCCESS: Attempted to run the scheduled task "spotify".
SUCCESS: The scheduled task "spotify" was successfully deleted.

The Chocolatey Installer doesn't check for these: ➡️ Uninstallation of Spotify Windows Store App, as this could be the culprit. ➡️ Missing Flags for New-ScheduledTaskSettingsSet -StartWhenAvailable -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries

What the script does

  • Uninstalls Spotify Windows Store App for all users (can be skipped with pressing "C")
  • Checks for Spotify Installers in the subfolders of %Temp%\chocolatey\spotify\
  • If not present, it offers you to run choco install spotifyfor you
  • Otherwise you can select a version or let the installer autocontine
  • over the task scheduler the spotify setup is fired

How to run the script

Run the script with admin privileges. To do so, type in "Powershell" in the searchbar and select "Run as adminstrator".

  • Option 1: If not done yet, you Set-ExecutionPolicy to unrestricted, just open Powershell as admin and enter Set-ExecutionPolicy unrestricted
  • Option 2: Download the script in the dowmload folder and temporarily whitelist the script using powershell.exe -noprofile -executionpolicy bypass -file $HOME\Downloads\\Chocolatey-Spotify-Installation-Fix.ps1

Notes

Current State of the script

Script does its job but needs some cleanup.

Regarding Windows 7

There might be a fix here that's not implemented: https://superuser.com/a/1778056

chocolatey-spotify-installation-fix's People

Contributors

rorar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.