Fix non-functioning statement

This commit is contained in:
Manuel Thalmann 2024-03-13 11:16:24 +01:00
parent f026943763
commit f9abc3801a

View file

@ -3,7 +3,7 @@
function Install-Winget {
$downloadLink = "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle";
$file = New-TemporaryFile;
$file = Rename-Item $file "$file.msixbundle";
$file = Rename-Item $file "$file.msixbundle" -PassThru;
Invoke-WebRequest "$downloadLink" -OutFile "$file";
choco install -y winget;
Add-AppxPackage "$file";