Scoop-Spotify icon indicating copy to clipboard operation
Scoop-Spotify copied to clipboard

Installer Error Code 24

Open sebkolind opened this issue 3 years ago • 20 comments

I had the app running just fine, but then I restarted my machine, and all of a sudden when I try to open the app I get the Installer Error Code: 24. I saw that Spotify wanted to update the app (up in the right corner on the arrow icon) but I haven't touched that, since I figured it would break.

Now, after a restart I cannot open the app, since I am just getting this issue.

I have tried a scoop update spotify-latest without any success.

image

sebkolind avatar Jan 07 '21 08:01 sebkolind

Try reinstalling spotify-latest as admin: sudo scoop uninstall spotify-latest sudo scoop install spotify-latest

TheRandomLabs avatar Jan 08 '21 00:01 TheRandomLabs

Thank you for getting back to me.

That did not seem to work. I get the same result, and if I click "Retry" it'll show me "Installing Spotify" for a very long time - I haven't actually seen it finish.

sebkolind avatar Jan 08 '21 17:01 sebkolind

Try doing the same, but with --purge: sudo scoop uninstall --purge spotify-latest. This will remove all user data.

TheRandomLabs avatar Jan 08 '21 23:01 TheRandomLabs

For now it looks like it is working, after I did the uninstall with sudo. I did try to uninstall without, and that did not work.

Thanks!

sebkolind avatar Jan 09 '21 08:01 sebkolind

@TheRandomLabs Unfortunately, I do know have the same issue again. The installer opens and it does not move on. I am not sure why this is not working for me. Do you have any idea of what is going on?

sebkolind avatar Jan 11 '21 09:01 sebkolind

Hmm, not really. Did you install Spotify as administrator?

TheRandomLabs avatar Jan 11 '21 11:01 TheRandomLabs

Yes, both sudo and in an elevated PowerShell (I don't think that this makes a big difference though).

sebkolind avatar Jan 11 '21 13:01 sebkolind

Hmm, when you run sudo scoop uninstall --purge spotify-latest, can you confirm that $env:APPDATA\Spotify and $env:LOCALAPPDATA\Spotify are deleted?

TheRandomLabs avatar Jan 11 '21 23:01 TheRandomLabs

Yes, they are deleted.

sebkolind avatar Jan 12 '21 08:01 sebkolind

I'm stumped.

TheRandomLabs avatar Jan 12 '21 11:01 TheRandomLabs

Okay, fair. It seems like an issue on my machine - I might just install Spotify via the regular installer. Just triggers my OCD that I can't have everything installed via scoop you know? Anyway, thanks for your help 😉

sebkolind avatar Jan 12 '21 11:01 sebkolind

Yeah, I get that OCD. 😛 You're welcome.

TheRandomLabs avatar Jan 13 '21 00:01 TheRandomLabs

If someone else has more information, let me know. 😉

TheRandomLabs avatar Feb 01 '21 08:02 TheRandomLabs

I'm also getting this error. After solving the hash faile issue by reinstalling spotify-latest with --skip flag, I get this error, but not the first hours after installing it fresh. I get this like a day after I install spotify. When I get it the only things that I can do is: scoop uninstall spotify-latest --purge scoop install spotify-latest

and it works again for the next 24h (give or take) What can it be? it wasn't happening before, should I try with an older version?

maxsubs avatar Mar 28 '21 14:03 maxsubs

Until I have a consistent way of reproducing this, I have no idea.

TheRandomLabs avatar Mar 30 '21 00:03 TheRandomLabs

I don't know what's triggering it exactly, cause it always happens a few launch after I reinstall it. Is there any way to get some logs from launch? In the meantime I've schedule this dayly: scoop uninstall spotify-latest --purge scoop install spotify-latest --skip

I have these packages installed (in case some of them may be the problem): scoop install spotify-latest blockthespot spicetify-cli genius-spicetify spicetify-themes spicetify config current_theme Adapta-Nokto spicetify-apply

maxsubs avatar Mar 30 '21 11:03 maxsubs

Since this error start appearing after the hash problem and we needed to use the --skip flag to get around it, couldn't these two things be related? I'd like to try to reinstalled spotify without the skip flag and see. Btw I've also tried the two older versions of spotify-latest + hold command, but didn't make any difference

maxsubs avatar Mar 30 '21 11:03 maxsubs

Hmm, maybe somehow Scoop is downloading an older version of Spotify, and Spotify is trying to update.

TheRandomLabs avatar Mar 30 '21 12:03 TheRandomLabs

I ran into this issue as well. According to the Readme:

Spotify's built-in updater is disabled, and Scoop should be used to update it instead.

I've installed Spotify from this repo a big while ago. And I didn't use Spotify for a really good while (minimum a month, maybe minimum 2 months) on this machine until today. I don't use spicetify or any other package, only spotify-latest.

So, how I got into this issue: There was a blue dot in Spotify at the drop-down next to the account name, asking me to install the update. This was odd, since I knew it was managed with scoop. So I closed Spotify and ran scoop update *, which also updated Spotify. After opening again, I still got the red dot in Spotify and decided to fat finger that update. Spotify closed and now shows me the error like OP pictured, whenever I want to open it.

For reference as stated in the comments with uninstallation and installation:

C:\Users\Dionysius
λ scoop uninstall spotify-latest
Uninstalling 'spotify-latest' (1.1.56.595.g2d2da0de).
Running uninstaller script...
Everyone: No mapping between account names and security IDs was done.
Removing shim for 'Spotify'.
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Spotify.lnk
Unlinking ~\scoop\apps\spotify-latest\current
Removing older version (1.1.48.625.g1c87c7f7).
Removing older version (1.1.53.608.g7ed9c03a).
Removing older version (1.1.55.498.gf9a83c60).
'spotify-latest' was uninstalled.

C:\Users\Dionysius
λ scoop install spotify-latest
Installing 'spotify-latest' (1.1.56.595.g2d2da0de) [64bit]
Loading SpotifyFullSetup.exe from cache
Checking hash of SpotifyFullSetup.exe ... ok.
Running installer script...
C:\Users\Dionysius\AppData\Local\Spotify\*: The system cannot find the path specified.
Everyone: No mapping between account names and security IDs was done.
Linking ~\scoop\apps\spotify-latest\current => ~\scoop\apps\spotify-latest\1.1.56.595.g2d2da0de
Creating shim for 'Spotify'.
Creating shortcut for Spotify (Spotify.exe)
Persisting config.ini
Running post-install script...
'spotify-latest' (1.1.56.595.g2d2da0de) was installed successfully!
Notes
-----
--purge should be used to fully uninstall this package.

~~Obervation: My statement above about up-to-date spotify seems not to be true. Unfortunately I don't have the output of the scoop update anymore, so I don't have any proof anymore about what exactly got updated. Maybe spotify update failed, but I didn't had an error.~~ I can't read correctly (sorry it's late here). So the latest was installed - ignore this part

So far spotify is fine again, I did not need to uninstall with --purge, did not need sudo and my account login is still there.

So the question is maybe, what I've cited above: Was there maybe a version of spotify where the internal autoupdate was not disabled and on some machines it tried to automatically update? (Maybe it would've happened to me as well, if I had closed and opened spotify again, but now we never know)

dionysius avatar Apr 15 '21 22:04 dionysius

In my case the scoop updater for spotify was not updated with latest version. I resolved temporary by removing the Spotify updater by navigating to %localappdata%\Spotify\Update and deleting the exe files.

orhanmaden avatar Sep 18 '23 07:09 orhanmaden