-
Notifications
You must be signed in to change notification settings - Fork 141
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]: Windows Sandbox incompatibility #384
Comments
I don't have any issue in my WSB on windows 11 |
I can see it on Win 10, but if we include (as in Winget-Install-GUI) it is resolved:
Maybe also (regarding Core):
|
but yes, |
but for the Add-AppxPackage, it might depend if it is installed from an admin user or system account (like SCCM or Intune does), I guess |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
@KnifMelti
Here's what I use to check for in my scripts:
|
I've checked and removing version 2.7 breaks things so it definitely looks like both 2.7 and 2.8 needs to be installed. See also #554 |
The problem
The install script fails when trying to run in on the Windows 11 Sandbox for two reasons:
Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" }
returns an empty string.Get-AppPackage -name "Microsoft.DesktopAppInstaller"
is the safer option to use.Add-AppxProvisionedPackage -Online -PackagePath "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -SkipLicense | Out-Null
fails. The safer version to use isAdd-AppxPackage "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
What version of WAU has the issue?
latest
What version of Windows are you using (ex. Windows 11 22H2)?
Windows 11 Sandbox - latest version
What version of winget are you using?
latest
Log information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: