winget
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| winget [2021-06-19 14:31:25] – [Konfigurationsdatei (ab v1.0.11451)] david | winget [2023-01-09 14:01:22] (aktuell) – [Windows Server] david | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Windows Package Manager (winget) ====== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * **winget**: Quelle msstore entfernen: '' | ||
| + | * David' | ||
| + | * '' | ||
| + | |||
| + | |||
| + | ===== Configuration ===== | ||
| + | |||
| + | **Tab Completion in PowerShell**: | ||
| + | |||
| + | Pfad zur Konfigurationsdatei: | ||
| + | |||
| + | oder mit dem Befehl öffnen: | ||
| + | > winget settings | ||
| + | |||
| + | <code javascript settings.json> | ||
| + | { | ||
| + | " | ||
| + | // For documentation on these settings, see: https:// | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | |||
| + | ==== Windows Server ==== | ||
| + | |||
| + | * Winget wird offiziell nicht auf Windows Server unterstützt. | ||
| + | * Winget benötigt eigentlich "App Execution Aliases" | ||
| + | * Winget läuft nicht auf Windows Server Versionen, die älter sind als 2019 und kann mit einigen Workarounds auf 2019 lauffähig gemacht werden | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <code powershell winget.ps1> | ||
| + | $ErrorActionPreference = ' | ||
| + | |||
| + | $info = Get-ComputerInfo -Property @(" | ||
| + | if ($info.WindowsInstallationType -ne " | ||
| + | write-host "This script is only intended for use on Windows Server because installation of winget is not officially supported there!" | ||
| + | return | ||
| + | } | ||
| + | |||
| + | # Microsoft.UI.Xaml: | ||
| + | # Microsoft.VCLibs: | ||
| + | # WinGet: https:// | ||
| + | |||
| + | # update links manually | ||
| + | |||
| + | $msuixaml = " | ||
| + | $vclibs = " | ||
| + | $winget = " | ||
| + | $wingetLicense = " | ||
| + | |||
| + | $msuixamlPath = " | ||
| + | $msuixamlPathExtracted = " | ||
| + | $vclibsPath = " | ||
| + | $wingetPath = " | ||
| + | $wingetLicensePath = " | ||
| + | |||
| + | Invoke-WebRequest -UseBasicParsing -Uri $msuixaml -OutFile $msuixamlPath | ||
| + | Expand-Archive -LiteralPath $msuixamlPath -DestinationPath $msuixamlPathExtracted -Force | ||
| + | $msuixamlExtracted = Get-ChildItem -File -LiteralPath " | ||
| + | Add-AppxPackage -Path $msuixamlExtracted | ||
| + | |||
| + | Invoke-WebRequest -UseBasicParsing -Uri $vclibs -OutFile $vclibsPath | ||
| + | Add-AppxPackage -Path $vclibsPath | ||
| + | |||
| + | Invoke-WebRequest -UseBasicParsing -Uri $winget -OutFile $wingetPath | ||
| + | Invoke-WebRequest -UseBasicParsing -Uri $wingetLicense -OutFile $wingetLicensePath | ||
| + | Add-AppxPackage -Path $wingetPath | ||
| + | |||
| + | </ | ||
| + | |||
