Fix dependencies for package manager
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2021-06-22 13:44:06 +02:00
parent 51f6a7c7bd
commit 84d449dadb

View File

@ -13,6 +13,12 @@ $InvokeWebRequestSplat = @{
}
Invoke-WebRequest @InvokeWebRequestSplat
If (Test-Path -Path "$env:temp\winget.appxbundle") {
& dism.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"$env:temp\winget.appxbundle" /SkipLicense
$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 /DependencyPackagePath:"$env:temp\vclibs.appx"
}