ScoopInstaller / Extras

📦 The Extras bucket for Scoop.
https://scoop.sh
The Unlicense
1.78k stars 1.33k forks source link

[Bug]: eraser update: "Could not find 'Eraser'! (error 16)" #13705

Closed Skylark13 closed 1 month ago

Skylark13 commented 1 month ago

Prerequisites

Package Name

eraser

Expected/Current Behaviour

Expected behaviour: Update should succeed.

Current behaviour:

eraser: 6.2.0.2993 -> 6.2.0.2994
Updating one outdated app:
Updating 'eraser' (6.2.0.2993 -> 6.2.0.2994)
Downloading new version
Eraser%206.2.0.2994.exe (8.4 MB) [============================================================================] 100%
Checking hash of Eraser%206.2.0.2994.exe ... ok.
Uninstalling 'eraser' (6.2.0.2993)
Installing 'eraser' (6.2.0.2994) [64bit] from 'extras' bucket
Loading Eraser%206.2.0.2994.exe from cache
Extracting Eraser%206.2.0.2994.exe ... done.
Running pre_install script...Exception: C:\Users\guayj\scoop\apps\scoop\current\lib\core.ps1:889
Line |
 889 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'Eraser'! (error 16)

Steps to Reproduce

PS> scoop update eraser
eraser: 6.2.0.2993 -> 6.2.0.2994
Updating one outdated app:
Updating 'eraser' (6.2.0.2993 -> 6.2.0.2994)
Downloading new version
Eraser%206.2.0.2994.exe (8.4 MB) [============================================================================] 100%
Checking hash of Eraser%206.2.0.2994.exe ... ok.
Uninstalling 'eraser' (6.2.0.2993)
Installing 'eraser' (6.2.0.2994) [64bit] from 'extras' bucket
Loading Eraser%206.2.0.2994.exe from cache
Extracting Eraser%206.2.0.2994.exe ... done.
Running pre_install script...Exception: C:\Users\guayj\scoop\apps\scoop\current\lib\core.ps1:889
Line |
 889 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'Eraser'! (error 16)

I also tried uninstall then install:

PS> scoop uninstall eraser
ERROR 'eraser' isn't installed correctly.
Uninstalling 'eraser' (6.2.0.2993).
Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Eraser.lnk
Removing older version (6.2.0.2994).
'eraser' was uninstalled.
PS> scoop install eraser
Installing 'eraser' (6.2.0.2994) [64bit] from 'extras' bucket
Loading Eraser%206.2.0.2994.exe from cache
Checking hash of Eraser%206.2.0.2994.exe ... ok.
Extracting Eraser%206.2.0.2994.exe ... done.
Running pre_install script...Exception: C:\Users\guayj\scoop\apps\scoop\current\lib\core.ps1:889
Line |
 889 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'Eraser'! (error 16)

Possible Solution

None

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
be56faf2 (HEAD -> master, tag: v0.5.1, origin/master, origin/HEAD) chore(release): Bump to version 0.5.1 (#6057)

'main' bucket:
14f504d2b (HEAD -> master, origin/master, origin/HEAD) sqldef: Update to version 0.17.15

'extras' bucket:
6d0d5a647 (HEAD -> master, origin/master, origin/HEAD) ytdlp-interface: Update to version 2.13.1

'versions' bucket:
edfa7049b (HEAD -> master, origin/master, origin/HEAD) kicad-nightly: Update to version 8.99.0.1910.g377b9aa859

'nerd-fonts' bucket:
00995507 (HEAD -> master, origin/master, origin/HEAD) SarasaGothic: Update to version 1.0.16

Scoop Config

PS> scoop config

last_update        scoop_branch scoop_repo
-----------        ------------ ----------
2024-07-28 9:56:40 master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.4
PSEdition                      Core
GitCommitId                    7.4.4
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

None

ath0mas commented 1 month ago

I started to debug this recently, and it seems the directory structure inside the msi files has changed compared to previous versions. I'll work on it soon