ScoopInstaller / Extras

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

[Bug]: Failed to extract files #9870

Closed Niefee closed 2 years ago

Niefee commented 2 years ago

Prerequisites

Package Name

powertoys

Expected/Current Behaviour

The plug-in cannot be installed normally

Steps to Reproduce

scoop install powertoys
WARN  Purging previous failed installation of powertoys.
ERROR 'powertoys' isn't installed correctly.
Removing older version (0.64.1).
'powertoys' was uninstalled.
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
WARN  To disable this warning, run 'scoop config aria2-warning-enabled false'.
Installing 'powertoys' (0.64.1) [64bit] from extras bucket
Loading PowerToysSetup-0.64.1-x64.exe from cache.
Checking hash of PowerToysSetup-0.64.1-x64.exe ... ok.
Running installer script...
ERROR Exit code was 1603!
Failed to extract files from C:\Users\XXX\scoop\apps\powertoys\0.64.1\.tmp\AttachedContainer\PowerToysSetup-0.64.1-x64.msi.
Log file:
  ~\scoop\apps\powertoys\0.64.1\.tmp\AttachedContainer\msi.log

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=powertoys%400.64.1%3a+decompress+error

Possible Solution

no

Scoop and Buckets Version

scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'dorado' bucket:
621995dd (HEAD -> master, origin/master, origin/HEAD) mineways: Update to version 10.04

'extras' bucket:
cc4926b3d (HEAD -> master, origin/master, origin/HEAD) wingetui: Update to version 1.5.1

'main' bucket:
75dfcc419 (HEAD -> master, origin/master, origin/HEAD) wakatime-cli: Update to version 1.60.1

'versions' bucket:
6e461caa (HEAD -> master, origin/master, origin/HEAD) yt-dlp-daily: Update to version 2022.11.29.40298

Scoop Config

aria2-enabled                   : True
aria2-retry-wait                : 3
aria2-split                     : 5
aria2-max-connection-per-server : 5
aria2-min-split-size            : 5M
gh_token                        : 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
last_update                     : 2022/11/29 星期二 13:51:32
proxy                           : 127.0.0.1:7890
scoop_repo                      : https://github.com/ScoopInstaller/Scoop
scoop_branch                    : master

PowerShell Version

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

Additional Softwares

no

niheaven commented 2 years ago

You may receive this error message if any one of the following conditions is true:

  • Windows Installer is attempting to install an app that is already installed on your PC.
  • The folder that you are trying to install the Windows Installer package to is encrypted.
  • The drive that contains the folder that you are trying to install the Windows Installer package to is accessed as a substitute drive.
  • The SYSTEM account does not have Full Control permissions on the folder that you are trying to install the Windows Installer package to. You notice the error message because the Windows Installer service uses the SYSTEM account to install software.

Ref: https://learn.microsoft.com/en-us/troubleshoot/windows-server/application-management/msi-installation-error-1603#cause

Could you please run scoop config use_lessmsi true and try again?

Niefee commented 2 years ago

You may receive this error message if any one of the following conditions is true:

  • Windows Installer is attempting to install an app that is already installed on your PC.
  • The folder that you are trying to install the Windows Installer package to is encrypted.
  • The drive that contains the folder that you are trying to install the Windows Installer package to is accessed as a substitute drive.
  • The SYSTEM account does not have Full Control permissions on the folder that you are trying to install the Windows Installer package to. You notice the error message because the Windows Installer service uses the SYSTEM account to install software.

Ref: https://learn.microsoft.com/en-us/troubleshoot/windows-server/application-management/msi-installation-error-1603#cause

Could you please run scoop config use_lessmsi true and try again?

It worked. Thank you. @niheaven