Closed uffemcev closed 1 year ago
Hm that's weird...
Maybe it was a glitch? Can you get to this page? https://api.nuget.org/v3-flatcontainer/Microsoft.UI.Xaml/index.json
To prevent against that, I will hard code version 2.8.4
as a failsafe in case the server is unavailable.
I released version 1.0.2
. Let me know if that fixes it for you. 😊
I released version
1.0.2
. Let me know if that fixes it for you. 😊
Thanks for that, but now i get a new error.
1.0.3 version
Try it again now. For some reason the appx
filename is not the same as it should be each time. On my Windows 11 machine it fine but my Windows 10 machine it doesn't. So I just had the script install whatever appx
files were in that folder.
It seems all is fine, isn't?
Thanks for your help!
No problem thanks for reporting the bug.
Yes, all looks good.
Script verson 1.0.1 Windows 22H2 UAC disable Powershell 5.1 Run as admin
Log
PS C:\Users\uffemcev> iwr raw.githubusercontent.com/asheroto/winget-installer/master/winget-install.ps1 | iex Invoke-RestMethod : BlobNotFoundThe specified blob does not exist. RequestId:68001a83-a01e-0069-2c38-a384bb000000 Time:2023-06-20T05:31:37.0098866Z At line:47 char:10 \+ $json = Invoke-RestMethod -Method Get -Uri $url \+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand Cannot index into a null array. At line:49 char:2 \+ $latestVersion = $json.versions[-1] \+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray ################################################## \# Downloading Xaml nupkg file... ################################################## ################################################## \# Downloading & installing x64 VCLibs... ################################################## ################################################## \# Installing x64 XAML... ################################################## Add-AppxPackage : Cannot find path 'C:\Users\uffemcev\AppData\Local\Temp\Microsoft.UI.Xaml.\tools\AppX\x64\Release\Microsoft.UI.Xaml..appx' because it does not exist. At line:69 char:2 \+ Add-AppxPackage $pkg -ErrorAction SilentlyContinue \+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\Users\uffemc...t.UI.Xaml..appx:String) [Add-AppxPackage], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand ################################################## \# Downloading winget... ################################################## ################################################## \# Installing winget... ################################################## ################################################## \# Checking and adding WindowsApps directory to PATH variable for current user if not present... ################################################## ################################################## \# Cleaning up... ################################################## Remove-Item : An object at the specified path C:\Users\uffemcev\AppData\Local\Temp\Microsoft.UI.Xaml. does not exist. At line:148 char:1 \+ Remove-Item -Path $nupkgFolder -Recurse \+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Remove-Item], PSArgumentException + FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.RemoveItemCommand ################################################## \# Installation complete! ################################################## ################################################## \# Please restart your computer to complete the installation. ################################################## PS C:\Users\uffemcev>