Raphire / Win11Debloat

A simple, easy to use PowerShell script to remove pre-installed apps from Windows, disable telemetry, remove Bing from Windows search as well as perform various other changes to declutter and improve your Windows experience. This script works for both Windows 10 and Windows 11.
MIT License
12.88k stars 546 forks source link

`Only show installed` stucks GUI #44

Open steve02081504 opened 6 months ago

steve02081504 commented 6 months ago

图片

Raphire commented 6 months ago

Heya,

Sorry you're running into this issue.

I am unable to reproduce this issue on my own systems, although I do have an idea what might cause it. To add the ability to remove Edge and OneDrive the script will check if the apps exist in the list provided by winget. Although getting this list seems to sometimes get stuck or require user input. To prevent infinite loading I have added a 10 second timeout in f878ebf, but this doesn't solve the issue causing the script from getting stuck.

To help narrow this issue down could you please provide me with a few details?

steve02081504 commented 6 months ago

Heya,

Sorry you're running into this issue.

...

I tried running the winget list for a while, and then winget got stuck on updating the source for tens of minutes now (my network environment is not configured properly) It looks like it's a problem with winget automatically updating the source, maybe we can disable it from networking with some parameter and just simply list what's installed? 图片 图片 ^ 5.3mb to download, 3.6kbps🤷‍♂️ 图片

Raphire commented 6 months ago

Heya, Sorry you're running into this issue. ...

I tried running the winget list for a while, and then winget got stuck on updating the source for tens of minutes now (my network environment is not configured properly) It looks like it's a problem with winget automatically updating the source, maybe we can disable it from networking with some parameter and just simply list what's installed? 图片 图片 ^ 5.3mb to download, 3.6kbps🤷‍♂️ 图片

Thanks for the quick reply.

That does explain the issue, I wasn't aware of this update behaviour for winget list.

From the documentation it doesn't seem like there's a way to just list apps without checking for updates. Documentation can be found here for reference; https://learn.microsoft.com/en-us/windows/package-manager/winget/list

I don't have time to fully dive into it right now, but it looks like I might have to look for a different way to check if certain apps are installed to avoid this issue.