TheRandomLabs / Scoop-Spotify

A Scoop bucket for Spotify, Spicetify and related packages.
The Unlicense
178 stars 14 forks source link

Cannot remove SpotifyMigrator because it does not exist #71

Closed soarn closed 9 months ago

soarn commented 9 months ago

I'm helping a friend go through the install, and we keep running into an error when installing spotify-latest. The script seems to be looking for SpotifyMigrator.exe but fails because it does not exist. image He has already uninstalled his previous version of Spotify (non-Scoop install, probably from the MS Store.)

Steps we have already taken to troubleshoot:

scoop uninstall spotify-latest --purge
scoop update -a
scoop install spotify-latest -s
# Same error as image above
ls scoop\apps\spotify-latest
# (1 folder, 1.2.31.1205.g4d59ad7c)
rm scoop\apps\spotify-* -r -force
ls scoop\apps\spotify-latest
# (doesn't exist)
scoop update -a
scoop install spotify-latest -s
# Same error as image above
sudo scoop uninstall --purge spotify-latest

image

scoop update -a
scoop install spotify-latest -s
# Same error
ls $env:LOCALAPPDATA | grep -i spot; echo ""; ls $env:APPDATA | grep -i spot
# This was to make sure there was nothing from any spotify install left, just in case
# (No output)

From this point, I went in and read the spotify-latest.json and looked at the installer script, which seems to have that Remove-Item line hardcoded in with no error action. https://github.com/TheRandomLabs/Scoop-Spotify/blob/3db21935409ffb7e1215f35057157ff6a7f82f31/bucket/spotify-latest.json#L27

I would assume that by updating these lines to skip if the files were not found then everything would work out? Especially if it's just deleting the files.

Any support would be much appreciated, thank you very much!

soarn commented 9 months ago

Use the official release of spotify and spicetify available on Scoop. When you setup Spicetify, it'll ask for your prefs folder, which is located in Romaing AppData.