diff --git a/scripts/Install-WinGet.ps1 b/scripts/Install-WinGet.ps1 index 5d6d1c0..b9cb018 100644 --- a/scripts/Install-WinGet.ps1 +++ b/scripts/Install-WinGet.ps1 @@ -13,6 +13,12 @@ $InvokeWebRequestSplat = @{ } Invoke-WebRequest @InvokeWebRequestSplat +$InvokeWebRequestSplat = @{ + Uri = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" + Out = "$env:temp\vclibs.appx" +} +Invoke-WebRequest @InvokeWebRequestSplat + If (Test-Path -Path "$env:temp\winget.appxbundle") { - & dism.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"$env:temp\winget.appxbundle" /SkipLicense + & dism.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"$env:temp\winget.appxbundle" /SkipLicense /DependencyPackagePath:"$env:temp\vclibs.appx" } \ No newline at end of file