Skip to content
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

GUIDE TO FIX WINGETUI NOT LAUNCHING #2000

Closed
marticliment opened this issue Mar 19, 2024 · 19 comments
Closed

GUIDE TO FIX WINGETUI NOT LAUNCHING #2000

marticliment opened this issue Mar 19, 2024 · 19 comments

Comments

@marticliment
Copy link
Owner

marticliment commented Mar 19, 2024

WingetUI 3.0.2 has been released, fixing most of the crashes. You may download it from here

WingetUI 3.0.2 should not crash anymore. Apologies for the inconveniences and for the incompatibilities with .NET 8.0.3 and 8.0.4


If WingetUI is still not launching, do the following steps

  1. Go to Windows Settings -> Apps -> Installed Apps
  2. Uninstall the following packages (some of them may not be present on your machine):
    a) WingetUI
    b) Windows App Runtime Main
    c) Windows App Runtime DDLM 5xxx.xx.xxxx.x
    d) Microsoft Windows App Runtime Singleton
  3. Download and install WingetUI from here: https://github.com/marticliment/WingetUI/releases/download/3.0.1/WingetUI.Installer.exe
  4. Download and install this: https://aka.ms/windowsappsdk/1.5/latest/windowsappruntimeinstall-x64.exe
  5. Quit WingetUI and return to Windows Settings
  6. Uninstall the following packages:
    e) Microsoft .NET Runtime 8.0.X (x64)
    f) Microsoft .NET SDK 8.0.X (x64)
  7. Install .NET Desktop Runtime 8.0.2 using the following URL: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.2-windows-x64-installer

If the steps above do not work, please downgrade to version 2.2.0 by doing the following:

  1. Navigate to C:\Users\<your-username>\.wingetui
  2. Right-click the folder -> Create -> Text document
  3. Rename the file to DisableAutoUpdateWingetUI. Make sure to remove the .txt extension from the file name.
  4. Uninstall WingetUI from the windows settings
  5. Download and install WingetUI 2.2.0 from here: https://github.com/marticliment/WingetUI/releases/download/2.2.0/WingetUI.Installer.exe

Explanation of the issue:

This issue mostly happens due to a bug on .NET 8.0.3 (hence the downgrade to 8.0.2) or for the Windows App Sdk not being installed properly. I am working to fix this issue, but since it is not directly caused by WingetUI, it is hard to fix it.

@marticliment marticliment closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
@marticliment marticliment changed the title [reserved issue] FIX FOR WINGETUI NOT LAUNCHING Apr 1, 2024
@marticliment marticliment pinned this issue Apr 1, 2024
@marticliment marticliment changed the title FIX FOR WINGETUI NOT LAUNCHING GUIDE TO FIX WINGETUI NOT LAUNCHING Apr 1, 2024
@stevehoek
Copy link

Unfortunately these steps did not work for me... WingetUI did not launch after installing in step 4, so I remove Desktop Runtime 8.0.3 (installed by WingetUI) and installed the linked 8.0.2 but still does not run.

Going back to v2 and blocking upgrades... this is sad because WingetUI 3.x DID work for awhile on these machines.

@marticliment
Copy link
Owner Author

Unfortunately these steps did not work for me... WingetUI did not launch after installing in step 4, so I remove Desktop Runtime 8.0.3 (installed by WingetUI) and installed the linked 8.0.2 but still does not run.

Going back to v2 and blocking upgrades... this is sad because WingetUI 3.x DID work for awhile on these machines.

Can you please look at Event Viewer, under Errors, and see if there is any WingetUI entry?

@stevehoek
Copy link

Still the same error in Event Viewer... access denied

Log Name:      Application
Source:        Windows App Runtime
Date:          4/1/2024 9:02:20 AM
Event ID:      5
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      TIGGER
Description:
Access is denied.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows App Runtime" />
    <EventID Qualifiers="32775">5</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-04-01T13:02:20.4721576Z" />
    <EventRecordID>749572</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>TIGGER</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Windows App Runtime</Data>
    <Data>ERROR 0x80070005: Bootstrapper initialization failed while looking for version 1.5 (MSIX package version &gt;= 5001.70.1338.0)</Data>
  </EventData>
</Event>

@OniriCorpe
Copy link

Still the same error in Event Viewer... access denied

Exact same error for me, after the first message steps

@marticliment
Copy link
Owner Author

Please share with me the output and exit code of installing this file:

https://aka.ms/windowsappsdk/1.5/latest/windowsappruntimeinstall-x64.exe

@stevehoek
Copy link

Please share with me the output and exit code of installing this file:

https://aka.ms/windowsappsdk/1.5/latest/windowsappruntimeinstall-x64.exe

Installing license: MSIX_MAINPACKAGE_LICENSE Install License result : 0x0 Installing license: MSIX_SINGLETONPACKAGE_LICENSE Install License result : 0x0 All install operations successful.

@OniriCorpe
Copy link

image

same

@keiznklei
Copy link

Didn't work for me sadly. Currently downgrading.

@jdrch
Copy link

jdrch commented Apr 10, 2024

I'm experiencing this bug too, on this machine. I'm on Windows 11 Beta on an Intel Core 8th Gen with an iGPU. Anyone else with the same/similar config?

@jdrch
Copy link

jdrch commented Apr 10, 2024

Issue persists after updating to Microsoft .NET Runtime 8.0.4 (x64). Strangely, only the above machine is affected.

@gleib
Copy link

gleib commented Apr 11, 2024

Same bug. WinGetUI was working fine prior to the following upgrades today:
2024-04 Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5036893
2024-04 .NET 8.0.4 Security Update for x64 Client (KB5037338)
All prior Windows 11 upgrades had been performed.

Error in Event Log --> Windows Logs --> Application ...
Windows App Runtime
ERROR 0x80070490: Bootstrapper initialization failed while looking for version 1.5 (MSIX package version >= 5001.70.1338.0)

Fix above did not work.

@jdrch
Copy link

jdrch commented Apr 11, 2024

@gleib Which Windows 11 channel are you on: Beta, Canary, or ... ? Asking because my non-Beta, Stable Channel Windows 11 machines are unaffected.

@gleib
Copy link

gleib commented Apr 11, 2024

Interesting. Not participating in Windows Insider Channels on this machine BUT do have "Get the latest updates as soon as they're available" option set. May try rolling back this latest update and see what happens.

@jdrch
Copy link

jdrch commented Apr 11, 2024

@gleib I have that option enabled too!

@gleib
Copy link

gleib commented Apr 11, 2024

Decided to proceed with upgrades using winget in the command line. Among the listed upgrades ...
"Microsoft Windows Desktop Runtime - 8.0.3 (x64)" with an indication that 8.0.4 (x64) was available.
Did this upgrade among others (specific user apps, not system components), then did a BIOS upgrade and re-booted.
Following re-boot WinGetUI was working!

@marticliment
Copy link
Owner Author

Hello,

Please test this custom build and let me know if it works: https://drive.google.com/file/d/1NO8jhMDBPmMGvlnaW5MXv5vjYjvmFJLa/view?usp=sharing

Thanks!

@marticliment
Copy link
Owner Author

Hello, everyone,

WingetUI 3.0.2 has been published. It fixes

  • Crashes with .NET Sdk 8.0.3 (no launch at all)
  • Crashes with .NET Sdk 8.0.4 (Cannot locate resource from 'ms-appx:///Microsoft.UI.Xaml/Themes/themeresources.xaml)
  • Crashes with the App Sdk (This app requires whe Windows App runtime) when it was already installed
  • Crashes when elevating WingetUI from non-admin users

WingetUI 3.0.2 can be downloaded directly from here. If the crashes persist, please reply here and I will reopen the issue.

@gleib
Copy link

gleib commented Apr 11, 2024

As noted above ... my WinGetUI installation (3.0.1) started working when discovered and updated "Microsoft Windows Desktop Runtime - 8.0.3 (x64)" to 8.0.4. That said, installed WinGetUI 3.0.2 and that is working fine as well.
Thanks!

@jdrch
Copy link

jdrch commented Apr 11, 2024

@marticliment confirming that WingetUI 3.0.2 resolves the issue. Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants