You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched all issues/PRs to ensure it has not already been reported or fixed.
I have verified that I am using the latest version of Scoop and corresponding bucket.
Package Name
spotify
Expected/Current Behaviour
The current logic for blocking auto-updates in the spotify package is as follows:
During installation:
Delete the "\%LOCALAPPDATA%\Spotify\Update\"directory (with the -Recurse parameter, because it is a directory).
Create a file at "\%LOCALAPPDATA%\Spotify\Update", and mark it as a read-only, system file.
During uninstallation:
Force-delete the file at "\%LOCALAPPDATA%\Spotify\Update\" (without the -Recurse parameter, because it is supposed to be a file not a directory).
The file deletion step was added in PR #12737 to fix Bug #10841.
Intended/expected behavior: Spotify will not be able to recreate the Update folder, because it is being blocked by a file marked read-only and system.
Current, actual behavior: The first time Spotify is started after an install or an upgrade, it force-deletes the Update file. The next time an update is available, the Update directory gets recreated. So, the auto-update doesn't get blocked anymore. This was reported in Bug #12429.
Unintended side effect: When spotify is updated through scoop, during the uninstall step, the deletion command is run without the recurse parameter (because Update is expected to be a file). This causes the update process to pause for user-input with the following message:
The item at C:\Users<username>\AppData\Local\Spotify\update has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
This is the issue I'm reporting here.
Expected behavior: Spotify update via scoop proceeds without pausing for user-input.
Steps to Reproduce
1. Install spotify: `scoop install extras/spotify`.2. Wait until a spotify update is available.3. `scoop update` followed by `scoop update spotify`.
Possible Solution
Possible quick fix to remove the unintended user prompt:
One could add the -Recurse parameter to the deletion step in the uninstaller.
A cleaner approach would be to get rid of all the steps related to blocking auto-updates, because this logic doesn't work anymore anyway.
Tackling the auto-update issue:
Supposedly, an approach for blocking auto-upgrades that does work is to deny the user read and delete privileges to the Update directory from an admin prompt. This way, Spotify will need admin privileges for auto updates.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Package Name
spotify
Expected/Current Behaviour
The current logic for blocking auto-updates in the spotify package is as follows:
During installation:
"\%LOCALAPPDATA%\Spotify\Update\"
directory (with the -Recurse parameter, because it is a directory)."\%LOCALAPPDATA%\Spotify\Update"
, and mark it as a read-only, system file.During uninstallation:
"\%LOCALAPPDATA%\Spotify\Update\"
(without the -Recurse parameter, because it is supposed to be a file not a directory).The file deletion step was added in PR #12737 to fix Bug #10841.
Intended/expected behavior: Spotify will not be able to recreate the
Update
folder, because it is being blocked by a file marked read-only and system.Current, actual behavior: The first time Spotify is started after an install or an upgrade, it force-deletes the
Update
file. The next time an update is available, theUpdate
directory gets recreated. So, the auto-update doesn't get blocked anymore. This was reported in Bug #12429.Unintended side effect: When spotify is updated through scoop, during the uninstall step, the deletion command is run without the recurse parameter (because
Update
is expected to be a file). This causes the update process to pause for user-input with the following message:This is the issue I'm reporting here.
Expected behavior: Spotify update via scoop proceeds without pausing for user-input.
Steps to Reproduce
Possible Solution
Possible quick fix to remove the unintended user prompt:
-Recurse
parameter to the deletion step in the uninstaller.Tackling the auto-update issue:
Update
directory from an admin prompt. This way, Spotify will need admin privileges for auto updates.These may both be beyond the scoop of scoop installer, but maybe an installer note could be added as suggested in #12429 (comment).
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response
The text was updated successfully, but these errors were encountered: