Closed maephisto666 closed 1 month ago
If anyone confirms my analysis, I can make a PR.
If anyone confirms my analysis, I can make a PR.
You are right.
Still seeing this:
Running installer script...New-Item:
Line |
4 | … pdateFile = New-Item -Path "$env:LOCALAPPDATA\Spotify" -Name Update - …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the path 'C:\Users\sme\AppData\Local\Spotify\Update' is denied.
InvalidOperation:
Line |
5 | $updatefile.Attributes = 'ReadOnly', 'System'
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The property 'Attributes' cannot be found on this object. Verify that the property exists and can be set.
Versions:
❯ scoop -v
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)
'main' bucket:
fba36500d (HEAD -> master, origin/master, origin/HEAD) wasmtime: Update to version 24.0.0
'extras' bucket:
69cd30549 (HEAD -> master, origin/master, origin/HEAD) zrok: Update to version 0.4.39
'versions' bucket:
33af04bce (HEAD -> master, origin/master, origin/HEAD) phpstorm-rc: Update to version 2024.2.1-242.21829.34
'java' bucket:
84b7bb31 (HEAD -> master, origin/master, origin/HEAD) temurin11-nightly-jre: Update to version 11.0.25-3.0.ea
'scoop-nerd-fonts' bucket:
b17bbac (HEAD -> master, origin/master, origin/HEAD) SarasaGothic: Update to version 1.0.19
Prerequisites
Package Name
spotify
Expected/Current Behaviour
The first time the installation runs, a
Update
file is created within the$env:LOCALAPPDATA\Spotify
. The file is given Read-Only and System attributes. This is a way to "block" the auto-updater.Every next attempt to upgrade the package via scoop will end well BUT an error message will be shown
The problem is that if we look at the
spotify.json
we seeUpdate
fileThis behaviour tries to make the package idempotent, but the deletion goes wrong (without showing any output, because the file was
read-only
andsystem
)Steps to Reproduce
Possible Solution
Add
-Force
to the deletion step. This will make the deletion always successful and the next creation as well.Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response