Microsoft.UI.XAML.2.7 not needed,removed

pull/390/head
KnifMelti 2023-09-10 12:02:00 +02:00
parent 3713717890
commit 6ab44e4f25
1 changed files with 1 additions and 19 deletions

View File

@ -196,25 +196,7 @@ function Install-WinGet {
Write-Host "-> Winget is not installed:" Write-Host "-> Winget is not installed:"
#Downloading and Installing Dependencies in SYSTEM context #Downloading and Installing Microsoft.VCLibs.140.00.UWPDesktop in SYSTEM context
if (!(Get-AppxPackage -Name 'Microsoft.UI.Xaml.2.7')) {
Write-Host "-> Downloading Microsoft.UI.Xaml.2.7..."
$UiXamlUrl = "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.0"
$UiXamlZip = "$WingetUpdatePath\Microsoft.UI.XAML.2.7.zip"
Invoke-RestMethod -Uri $UiXamlUrl -OutFile $UiXamlZip
Expand-Archive -Path $UiXamlZip -DestinationPath "$WingetUpdatePath\extracted" -Force
try {
Write-Host "-> Installing Microsoft.UI.Xaml.2.7..."
Add-AppxProvisionedPackage -Online -PackagePath "$WingetUpdatePath\extracted\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.7.appx" -SkipLicense | Out-Null
Write-host "Microsoft.UI.Xaml.2.7 installed successfully" -ForegroundColor Green
}
catch {
Write-Host "Failed to intall Wicrosoft.UI.Xaml.2.7..." -ForegroundColor Red
}
Remove-Item -Path $UiXamlZip -Force
Remove-Item -Path "$WingetUpdatePath\extracted" -Force -Recurse
}
if (!(Get-AppxPackage -Name 'Microsoft.VCLibs.140.00.UWPDesktop')) { if (!(Get-AppxPackage -Name 'Microsoft.VCLibs.140.00.UWPDesktop')) {
Write-Host "-> Downloading Microsoft.VCLibs.140.00.UWPDesktop..." Write-Host "-> Downloading Microsoft.VCLibs.140.00.UWPDesktop..."
$VCLibsUrl = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" $VCLibsUrl = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"