fix(winget): import Appx module

This commit is contained in:
Jan De Dobbeleer 2022-12-16 15:19:18 +01:00 committed by Jan De Dobbeleer
parent da4fb19684
commit 8e39ff6a82

View file

@ -62,6 +62,9 @@ if (-not $Token) {
return
}
# Install the latest wingetcreate exe
# Need to do things this way, see https://github.com/PowerShell/PowerShell/issues/13138
Import-Module Appx -UseWindowsPowerShell
# Download and install C++ Runtime framework package.
$vcLibsBundleFile = "$env:TEMP\Microsoft.VCLibs.Desktop.appx"
Invoke-WebRequest https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $vcLibsBundleFile