UniGetUI icon indicating copy to clipboard operation
UniGetUI copied to clipboard

Automatically refresh installed applications list after installing or updating packages

Open ppvnf opened this issue 2 years ago • 14 comments

After installing or updating a package you have to click the refresh icon near the search bar to see the new package or new version displayed under "Installed applications". I know it's not a big deal, but I think it would be easier for the user if the list were updated automatically after the installation or update.

ppvnf avatar Sep 06 '22 22:09 ppvnf

That might be difficult, because most of the times the uninstallers don't share the same IDs with the uninstallers, especially on Winget, but this can be studied

marticliment avatar Sep 07 '22 06:09 marticliment

That might be difficult, because most of the times the uninstallers don't share the same IDs with the uninstallers, especially on Winget, but this can be studied

What about refreshing all uninstallers like clicking the refresh icon does?

ppvnf avatar Sep 07 '22 15:09 ppvnf

Yes, but that would be excessive (like in terms of performance), and i guess not much people would install an app to right-after uninstall it.

I don't know, honestly, i'll study this but can't guarantee anything

marticliment avatar Sep 07 '22 16:09 marticliment

I agree that this issue is a low priority one, but if someday you get into it I also noticed that even after uninstalling a package its update won't disappear if you don't refresh the "software updates" list

ppvnf avatar Sep 15 '22 16:09 ppvnf

I agree that this issue is a low priority one, but if someday you get into it I also noticed that even after uninstalling a package its update won't disappear if you don't refresh the "software updates" list

Uninstalls should actually disapear. Does this happen always?

marticliment avatar Sep 15 '22 18:09 marticliment

It only happened once with me a few days ago when I uninstalled something (I forgot what it was) and then went to the update section in order to update everything. That's when I saw the uninstalled app in the list, then refreshed it and the uninstalled app was gone and I was able to update everything else normally. I don't know what would happen if I updated the uninstalled app, but unfortunately I forgot to take screenshots and I don't know how to reproduce it

ppvnf avatar Sep 15 '22 18:09 ppvnf

Uninstalls should actually disapear. Does this happen always?

I just noticed that if you uninstall something then search for the uninstalled program again it will reappear and the number of packages will stay the same until you refresh the list.

https://user-images.githubusercontent.com/73800734/190901020-ff296104-727c-4dad-8ad3-2f557275e666.mp4

ppvnf avatar Sep 18 '22 12:09 ppvnf

Ok, that is not supposed to happen

marticliment avatar Sep 19 '22 16:09 marticliment

It only happened once with me a few days ago when I uninstalled something (I forgot what it was) and then went to the update section in order to update everything. That's when I saw the uninstalled app in the list, then refreshed it and the uninstalled app was gone and I was able to update everything else normally. I don't know what would happen if I updated the uninstalled app, but unfortunately I forgot to take screenshots and I don't know how to reproduce it

I forgot to make a video about this last week. Here you go:

https://user-images.githubusercontent.com/73800734/192356804-2bcbcfed-4efc-42c0-ae4d-c07517fa75bd.mp4

ppvnf avatar Sep 26 '22 18:09 ppvnf

I just realized that this issue is about 4 different things and a bit confusing. I will try to organize them (feel free to edit):

checklist moved to top of the page

https://user-images.githubusercontent.com/73800734/192360016-3484e7c8-5fd2-4494-aa56-45d4c56c507e.mp4

ppvnf avatar Sep 26 '22 18:09 ppvnf

Done!

marticliment avatar Sep 27 '22 18:09 marticliment

@martinet101 Thanks. I thought this feature would take a long time! Just to be sure since you received a lot of messages today/yesterday. Did you see the checklist I made yesterday https://github.com/martinet101/WingetUI/issues/121#issuecomment-1258473043?

ppvnf avatar Sep 27 '22 19:09 ppvnf

No, I did not see it. I'll take a look tomorrow

marticliment avatar Sep 27 '22 19:09 marticliment

No, I did not see it. I'll take a look tomorrow

Okay, take your time! Also, this might be related https://github.com/martinet101/WingetUI/issues/124

ppvnf avatar Sep 27 '22 19:09 ppvnf

* [x]  Refresh uninstall list when an app is installed/updated [3c58efe](https://github.com/martinet101/WingetUI/commit/3c58efe93260dd44a636df7d21605313403b674e)
* [ ]  Uninstalled apps appear in the update section (see video above)

I realized that I could have written "Uninstalled apps appear in the update section (see video above)" as "Refresh update list when an app is uninstalled", the opposite of 3c58efe

ppvnf avatar Oct 03 '22 11:10 ppvnf

If I uninstall the app with interactive uninstall it appears again, not sure it's worth it fixing though

ppvnf avatar Oct 04 '22 18:10 ppvnf

Well, worth giving it a check, right?

marticliment avatar Oct 04 '22 18:10 marticliment

I think this checklist is kinda confusing. I am gonna move it to the top of the page. Also, I've noticed that recently installed apps appear in the uninstall section even when they shouldn't be in the search results (if you clear the search result and search again this problem won't happen though)

ppvnf avatar Oct 05 '22 18:10 ppvnf

I've added to the todo:

  • [ ] If you install the same app twice or more, it will also appear that number of times in the uninstall section Like the other, this bug disappears if you refresh the list

ppvnf avatar Oct 12 '22 10:10 ppvnf

  • If you install the same app twice or more, it will also appear that number of times in the uninstall section

On 46816adc20a885d71ff431fdaddd10ab56ee7488 Installing with double-click when you have this option checked doesn't trigger the bug:

Captura de tela 2022-10-12 111845

Using other install methods still generates more entries in the uninstall section

ppvnf avatar Oct 13 '22 21:10 ppvnf

On 46816ad Installing with double-click when you have this option checked doesn't trigger the bug:

Then this is a bug, since it should have this behaviour.

Also, this duplication of entries needs to be fixed

marticliment avatar Oct 14 '22 13:10 marticliment

  • using double-click to install option doesn't add entry to the uninstall list

@martinet101, you are right. I've added this to the task list. I'm starting to think that "Refresh uninstall list when an app is installed/updated" was a bad idea since it created so many unforeseen problems

ppvnf avatar Oct 14 '22 23:10 ppvnf

Those seem fixed:

  • [x] Apps uninstalled with interactive uninstall will reappear in the uninstall section
  • [x] Recently installed apps appear in the uninstall section even when they shouldn't be in the search results

Possible solution for

  • Externally-installed apps not showing

in https://github.com/marticliment/WingetUI/issues/811#issuecomment-1480381358

ppvnf avatar Mar 23 '23 00:03 ppvnf

This issue seems fixed, however I had a problem with one package I was testing (https://github.com/ScoopInstaller/Extras/pull/9741#issuecomment-1504099566). Maybe because it uses a script that kills explorer it is not showing in the uninstall section after being installed

ppvnf avatar Apr 12 '23 21:04 ppvnf

It shouldn't affect. However, i will test it out and let you know

marticliment avatar Apr 13 '23 08:04 marticliment

Should't this be reopened until you test it out?

ppvnf avatar Apr 13 '23 19:04 ppvnf

It is a different issue.

This isste requested the feature, and the feature is not working except in some specific cases (that still need test). If the issue happens to reappear, i'll open a new issue, because the issue is not so relevant to this feature request.

marticliment avatar Apr 13 '23 19:04 marticliment