Skip to content

[Bug] #6475

@LUX-ETVERITAS

Description

@LUX-ETVERITAS

Bug Report

Current Behavior

When installing PowerToys via Scoop, the install-context.ps1 script fails with the following errors:

Add-AppxPackage : Cannot find path 'C:\Users\31810\scoop\apps\powertoys\0.94.0\ImageResizerContextMenuPackage.msix' because it does not exist.
At C:\Users\31810\scoop\apps\powertoys\current\install-context.ps1:108 char:1
+ Add-AppxPackage -Path 'C:\Users\31810\scoop\apps\powertoys\0.94.0\Ima ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\31810\...enuPackage.msix:String) [Add-AppxPackage], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

Followed by:

Add-AppxPackage : Deployment failed with HRESULT: 0x80073D2E, Package deployment failed because it must allow using external locations to deploy external content.
Windows cannot install the package Microsoft.CommandPalette_0.5.2412.0_x64__8wekyb3d8bbwe because it must allow using external locations to install external content.
NOTE: For additional information, look for [ActivityId] 12742217-1d24-000b-c98d-7612241ddc01 in the Event Log or use:
Get-AppPackageLog -ActivityID 12742217-1d24-000b-c98d-7612241ddc01
At C:\Users\31810\scoop\apps\powertoys\current\install-context.ps1:112 char:108
+ ... _*.msix\' | Add-AppxPackage -ExternalLocation 'C:\Users\31810\scoop\a ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Users\31810\...2412.0_x64.msix:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

Expected Behavior

  • The Scoop installation of PowerToys should correctly register the context menu packages (e.g., ImageResizerContextMenuPackage.msix) without missing file errors.
  • Add-AppxPackage should succeed without requiring special handling of “external location” deployment.

Additional context/output

  • The missing file (ImageResizerContextMenuPackage.msix) suggests that the Scoop manifest or PowerToys packaging changed upstream.
  • The second error (0x80073D2E) indicates Windows requires the package to explicitly allow installing external content, which might not be handled correctly in the current Scoop install script.

Possible Solution

  • Verify the Scoop manifest downloads and extracts all .msix packages needed by PowerToys (e.g., ImageResizerContextMenuPackage.msix).
  • Update install-context.ps1 to handle the -AllowExternalAppContent or adjust for recent packaging changes in PowerToys.
  • Alternatively, update the installation steps to skip failing Add-AppxPackage if the required .msix file is missing.

System details

Windows version: Windows 11 Pro 24H2 (Build 26100.4652)
OS architecture: 64bit
PowerShell version:

> $PSVersionTable.PSVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      26100  4652

Additional software: Installed via Scoop

Scoop Configuration

{
    "last_update":  "2025-09-03T23:09:21.6345993+08:00",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "scoop_branch":  "master",
    "aria2-split":  "32",
    "aria2-max-connection-per-server":  "16"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions