Romanitho / Romanitho/WingetIntunePackager
Not working in Windows Sandbox
Open
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 92
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
In Windows Sandbox it throw error that winget isn't installed. Code below solve this issue:
$ProgressPreference = 'silentlycontinue'
"Installing WinGet Dependencies"
"`t-VCLib"
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' -ErrorAction SilentlyContinue
"`t-UI.Xaml"
Invoke-WebRequest "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.1" -UseBasicParsing -OutFile "$env:TEMP\UI.xaml.zip"
Expand-Archive "$env:TEMP\UI.xaml.zip" -DestinationPath "$env:TEMP\UI.xaml" -Force
Add-AppxPackage -Path "$env:TEMP\UI.xaml\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.7.appx" -ErrorAction SilentlyContinue
"Downloading WinGet"
Invoke-WebRequest "https://aka.ms/getwinget" -UseBasicParsing -OutFile "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
#Install WinGet MSIXBundle
Try {
Write-Host "Installing MSIXBundle for App Installer..."
Add-AppxProvisionedPackage -Online -PackagePath "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -SkipLicense
Write-Host "Installed MSIXBundle for App Installer" -ForegroundColor Green
} Catch {
Write-Host "Failed to install MSIXBundle for App Installer..." -ForegroundColor Red
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the PowerShell entry point that installs or invokes winget and reproduce the failure in Windows Sandbox. Compare its dependency setup with the provided VCLibs, UI.Xaml, and App Installer installation sequence; done means the packager runs in the sandbox without the winget-not-installed error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100