Open jedieaston opened 2 years ago
We should fix this bug and leave the key in the manifest so the user experience works correctly. Unless I'm interpreting this incorrectly.
You're understanding correctly (it was kind of hard to explain, sorry). I don't want to remove the key, but if this fix is super complicated I wondered if we should remove it temporarily since Spotify is currently entirely borked.
Or perhaps someone can manually validate and merge spotify
Which PR is spotify?
I think the error I get is related to this issue: The installer cannot be run from an administrator context.
.
Log:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Starting package update operation for package id=Spotify.Spotifywith Manager name=Winget
Given installation options are <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Process Executable : C:\Program Files\WingetUI\PackageEngine\Managers\winget-cli_x64\winget.exe
Process Call Arguments : update --id Spotify.Spotify --exact --accept-source-agreements --silent --disable-interactivity --accept-package-agreements --force --include-unknown
Working Directory : C:\Users\Ja
| -
| ███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 9.78 MB
| ██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2.00 MB / 9.78 MB
| █████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 3.00 MB / 9.78 MB
| ████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 4.00 MB / 9.78 MB
| ███████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 5.00 MB / 9.78 MB
| ██████████████████▒▒▒▒▒▒▒▒▒▒▒▒ 6.00 MB / 9.78 MB
| █████████████████████▒▒▒▒▒▒▒▒▒ 7.00 MB / 9.78 MB
| ████████████████████████▒▒▒▒▒▒ 8.00 MB / 9.78 MB
| ███████████████████████████▒▒▒ 9.00 MB / 9.78 MB
| -
| The installer cannot be run from an administrator context.
Process Exit Code : -1978335146
Process End Time : 05.04.2024 16:23:34
(I use WingetUI, which is an UI for winget; never used winget alone; but I don't think that matters).
@jedieaston - has this been resolved? See https://github.com/microsoft/winget-pkgs/pull/150294/files
As of winget 1.3, winget now supports a
ElevationRequirement
key for installers, which can tell the client to error out if a user tries to run an installer that will fail when ran as an administrator (https://github.com/microsoft/winget-cli/pull/2126).The validation service doesn't seem to respect this, and is running installers in an elevated context that have
ElevationRequirement: elevationProhibited
set. Here's an example using Spotify (https://github.com/microsoft/winget-pkgs/pull/72166):InstallationClient log:
winget install
log:This is currently blocking Spotify from being updated, so if this is going to be a painful fix I can remove the
ElevationRequirement
key until it's resolved.