Closed uffemcev closed 1 year ago
Hello,
It says that it installed correctly, is it not working when you type winget
?
Can you please try downloading this? https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.3
Then extract the nupkg
with WinRAR/7-Zip and you should get this file...
Double-click that file and install it. Do you get any errors?
Also, please run this command and post the output:
winget-install -DebugMode
I'm testing the script on a system where winget is already installed. So winget works fine anyway. I haven’t tested the script on a freshly installed system yet. However, I am confused by this error during UI.Xaml installation. Should I be worried?
Ah I see what you're saying.
Can you try downloading that file I mentioned before? Does it download the file in English, or Russian? Maybe the issue is that the filenames are in Russian and the script isn't prepared to work with those filenames. If so I can create a fix.
The file is downloaded in English. I checked that your Get-OSInfo function actually outputs Russian values.
Ah ok. That must be why. Can you please show me the output?
Ah it's because the architecture is getting it as 64-разрядная
instead of x64
which corrupts the URL.
I will work on fixing this, thanks again for reporting it! I'll reply back here when ready to test.
I have fixed this, I think. What I did is have Get-OSInfo get the architecture type and strip out everything except the numbers, then prepend an x
to it like x64
.
Try this file on the Testing branch.
https://github.com/asheroto/winget-install/blob/Testing/winget-install.ps1
You'll want the raw version of course.
Now it works great! Thank you very much for your work!
Excellent! I will merge this into the main branch and release an update shortly. Thanks!
FYI ran into another minor glitch but will update the repo in the next few days
Thanks for notice
Version 3.0.1 has been released. Appreciate your time on this!
Hello. I have winget, but I decided to run this script to test it and I get this error. The error appears if the system language is Russian. If the system language is English, then there is no problem. Sorry for bad English.
Script verson 3.0.0 Windows 22H2 UAC disable Powershell 5.1 Run as admin
Log
Windows PowerShell (C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены. Установите последнюю версию PowerShell для новых функций и улучшения! https://aka.ms/PSWindows PS C:\Users\uffemcev> &([ScriptBlock]::Create((irm https://raw.githubusercontent.com/asheroto/winget-install/master/winget-install.ps1))) -Force winget-install 3.0.0 \################################################### \# Downloading & installing 64-разрядная VCLibs... # \################################################### URL: Installing 64-разрядная VCLibs... ПРЕДУПРЕЖДЕНИЕ: Error when trying to download or install VCLibs. Trying alternate method... Installing 64-разрядная VCLibs... ПРЕДУПРЕЖДЕНИЕ: Same version already installed. ПРЕДУПРЕЖДЕНИЕ: That's okay, continuing... \#################################################### \# Downloading & installing 64-разрядная UI.Xaml... # \#################################################### URL: Installing 64-разрядная UI.Xaml... ПРЕДУПРЕЖДЕНИЕ: Error when trying to download or install UI.Xaml. Trying alternate method... Downloading UI.Xaml... Extracting... Installing 64-разрядная UI.Xaml... Get-ChildItem : Не удается найти путь "C:\Users\uffemcev\AppData\Local\Temp\Microsoft.UI.Xaml.2.7.3\tools\AppX\64-разрядная\Release\Microsoft.UI.Xaml.2.7.appx", так как он не существует. строка:706 знак:17 \+ ... Get-ChildItem -Path $XamlAppxPath -Filter *.appx | ForEa ... \+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \+ CategoryInfo : ObjectNotFound: (C:\Users\uffemc...I.Xaml.2.7.appx:String) [Get-ChildItem], ItemNotFoundException \+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand UI.Xaml installed successfully. \###################################### \# Downloading & installing winget... # \###################################### Retrieving download URL for winget from GitHub... Downloading winget... Downloading license... Installing winget... winget installed successfully. \################################################################################################# \# Checking and adding WindowsApps directory to PATH variable for current user if not present... # \################################################################################################# PATH variable already present for Machine, skipping. PATH variable already present for User, skipping. \########################## \# Installation complete! # \########################## Checking if winget is installed and working... winget is installed and working now, you can go ahead and use it. PS C:\Users\uffemcev>