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

Not working in Windows Sandbox #23

Open
ztrhgf opened this issue Nov 7, 2023 · 2 comments
Open

Not working in Windows Sandbox #23

ztrhgf opened this issue Nov 7, 2023 · 2 comments

Comments

@ztrhgf
Copy link

ztrhgf commented Nov 7, 2023

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
    }
@Romanitho
Copy link
Owner

We need to update the tool with latest changes we made in WAU.

@Romanitho
Copy link
Owner

feel free to implement to get credited ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants