ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Minor bug: ImageGlass shows twice in Installed Apps list

Open siblount opened this issue 1 year ago • 8 comments

System information:

  • Windows OS version: 11
  • ImageGlass version: 9.0.7.1125

To Reproduce

Steps to reproduce the behavior:

  1. Install ImageGlass through classic installer (msi, non-portable)

Actual behavior:

Two instances of ImageGlass are registered

Expected behavior:

One instance of ImageGlass is registered

Screenshots:

image

Additional context:

Hopefully, this doesn't lead to any issues uninstalling ImageGlass 9 because of this.

siblount avatar Nov 25 '23 16:11 siblount

It shows for me twice in "Default apps".

worldsdream avatar Nov 25 '23 17:11 worldsdream

Just realized this could also be because I set it to install in C:/Program Files/ImageGlass instead of local.

siblount avatar Nov 25 '23 19:11 siblount

It seems you installed both MSI and Store version. They are 2 different releases

d2phap avatar Nov 27 '23 15:11 d2phap

@d2phap It was installed using the MSI version from the ImageGlass website choosing the "Get ImageGlass Classic" option, see here: image

I did not install from the Microsoft Store and MSI, just MSI.

siblount avatar Nov 27 '23 16:11 siblount

This issue was caused by the change from a machine based app to a user-based app as referenced by this issue: https://github.com/d2phap/ImageGlass/issues/1708

The apps listed in Add/Remove Programs are stored in the registry in a few different places, for machine-based apps (like the old MSI), they are stored in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall For user-based apps, they are stored in: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

The new user-based install can not modify the existing machine-based install in the registry (it can replace the files on disk though), so when "upgrading", you'll end up with entries in both the user registry and machine registry area, and will show in Add/Remove Programs as a duplicate.

asjimene avatar Nov 28 '23 23:11 asjimene

One correction to my earlier comment. The issue is the same, however, for user-based MSI applications, the uninstall entry for both User and Machine-wide installs both exist in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. However, the issue is the same, the previous version does not get removed because it is a different installation type.

asjimene avatar Nov 28 '23 23:11 asjimene

image This is what happens to the default apps after I uninstall the older MSI version on Windows 11. The active one is the paid version from the Windows app store.

DraHD avatar Jan 14 '24 08:01 DraHD

I fixed it by running ccleaner and using their registry tool.

Perhaps you can fix it with other tools or manually. Let us know.

worldsdream avatar Jan 14 '24 13:01 worldsdream

I will just close this for now. The workaround is remove the File Associations of v8 before upgrading to v9 (open IG Settings > File Type Associations > click Unregister extensions)

d2phap avatar May 01 '24 02:05 d2phap