From 84d449dadb94338f08d978cba69dafbcee113d20 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Tue, 22 Jun 2021 13:44:06 +0200 Subject: [PATCH] Fix dependencies for package manager --- scripts/Install-WinGet.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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