-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document workaround for Microsoft.UI.Xaml dependency #1861
Comments
I found a workaround that doesn't involve the Store:
I would much prefer to have a direct link to just the appx file (like for the Desktop Bridge) but this satisfies it in a relatively kosher way. |
I have the same issue After Install
|
@jedieaston is there a similar URL for Winget itself?
I also ran into this. Edit: fixed 2nd issue by running
1st issue is still there. |
But the "v1.3.1872" bit will change with next update. |
Thanks Levvie. |
Nope. If the latest release is marked as stable you'll get that one, but that's usually the latest one so you should be okay. |
Gotcha thanks! I was able to get things working yesterday, but now it broke out of nowhere. So to clarify: when you say Xaml.2.7, do you mean 2.7.0 from 2021 or 2.7.1 from 4 months ago? |
It has to be 2.7.x, the "patch" version (the last number) shouldn't matter (unless someone knows more than I do, but that's the rule I've followed). |
I wrote a powershell function for this @ItzLevvie @github-account1111 :
Call it like this
Note: the purpose of the -pattern parameter is not just to choose which file to download but also to filter out "releases" that don't have the wanted file (e.g. the most recent release according to github might just be a documentation release). |
If I install Store apps this way using winget, will they auto-update? Or am I stuck with whatever version was out at the time of installation? |
Yep, the Store will auto-update packages you sideload if it detects there's an update available. |
But I thought the whole premise of this issue is for when there is no Store 😅 |
Oh, I misunderstood your question. This doesn't install the Store, and you can't install Store apps without the Store being installed (winget will give you a error about not being logged in). Win32 apps can be installed from the Store without it being installed, but they won't be upgraded unless there's also a version of the app in the community repo. |
That's a bummer.. I assumed that since winget can install from the Store (e.g. |
Following up, but my Unigram was just upgraded, and that's UWP and from the Store, so I think they will get upgraded! |
@denelon why should this be a docs issue? winget should work on LTSC and Sandbox without us jumping through obscure hoops. |
We're working on a solution for making it easier to "bootstrap" WinGet on Windows Server without Microsoft Store access. |
Why just Windows Server? Will it be possible to bootstrap winget on Windows Desktop as well? |
winget is an excellent solution to provision Windows sandboxes as well, and if the winget installation wouldn't break every few weeks that would be great too 😇 |
The solution we're working on should apply to any version of Windows that is recent enough to have our dependencies available. |
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.3 -OutFile .\microsoft.ui.xaml.2.7.3.zip
Expand-Archive .\microsoft.ui.xaml.2.7.3.zip
Add-AppxPackage .\microsoft.ui.xaml.2.7.3\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.7.appx
Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.3.2691/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
Add-AppxPackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle note: You have to install 2.7, installing latest 2.8.1 of |
@nhooyr Your script seemed to work great. On a new workstation, after the XAML install, my machine seemed to know what to do with a .msixbundle file. The second part seems like you can abbreviate to |
Here is what is working for me today.
The provenance of all these files is direct from Microsoft, except for the command that uses NuGet to extract a file. You're on your own deciding if they are trustworthy. |
@AriMSD solution almost worked for me but needed to add the license to avoid #700 on Windows 10 Enterprise LTSC 2019
|
The We've also been looking to update the dependency to Microsoft.UI.Xaml 2.8 from 2.7 in WinGet: |
GitHub releases of the Appx files are now available; see microsoft/winget-pkgs#111841 |
This worked for me to install the latest version on Win10 Enterprise LTSC 2021 (I was having the same problem):
|
@jedieaston - Should this be closed now that UI.Xaml is distributed at the GitHub? |
I have a similar Problem with fresh installed Windows 10 22H2. using
to install it with a batch file i get following error on the last step:
Any Ideas? |
@LuciDuki - Are you using the 2.8 version of Microsoft.UI.Xaml, and not the 2.7 version? https://github.com/microsoft/microsoft-ui-xaml/releases/tag/v2.8.6 |
@Trenly - Yes, as it states here: Already found the issue... installed is version 8.2306.22001.0, but it wants version 8.2310.30001.0. |
I see, I must have missed that. I believe the telease of Microsoft.UI.Xaml I linked above is what the |
Hello @jedieaston, This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. Template: msftbot/noRecentActivity |
Out of curiousity, why does winget depend on UI libs? Does it use xaml somewhere? |
Originally posted by @florelis in #3380 (comment) |
Hello @jedieaston, This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. Template: msftbot/noRecentActivity |
Brief description of your issue
The latest pre-release version of winget requires Microsoft.UI.Xaml version 2.7, which doesn't have an external (no MSStore) download link. As such, it's impossible to install on Windows Sandbox or LTSC builds of Windows.
Steps to reproduce
Expected behavior
winget to install, with the dependency support stuff ready to test!
Actual behavior
(And before someone says it, yes I know how to get stuff from the Store for offline installation. But that's not the kosher method, and I'd rather someone ask the team that packages Microsoft.UI.Xaml to make it available at a URL like the Desktop Bridge team did.)
Environment
Windows: Windows.Desktop v10.0.22000.434 Any other software? This is the Sandbox build of Windows, so there is not a Microsoft Store available.
The text was updated successfully, but these errors were encountered: