Author Topic: UCheck shows "Location: Unknown" for multiple apps  (Read 1535 times)

0 Members and 1 Guest are viewing this topic.

December 23, 2023, 01:25:06 AM

JD4923

  • Newbie

  • Offline
  • *

  • 2
  • Reputation:
    0
    • View Profile
UCheck shows "Location: Unknown" for multiple apps
« on: December 23, 2023, 01:25:06 AM »
I recently started using UCheck (Premium), and mostly it works well. However, for multiple apps it shows "Location: Unknown". Examples:
  • In the Updates list: Mozilla Maintenance Service [64 bits]: It shows a very old version, with no location. The standard installs are current, so I have no way to find this old one.
  • In the Installed list: Various apps installed in standard locations have the Location field empty, e.g., Notepad++, PuTTY

UCheck must know where the files are, to have checked the version. Why doesn't it show that path under Location?

Thanks.


Reply #1December 23, 2023, 07:14:01 PM

Curson

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2809
  • Reputation:
    100
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #1 on: December 23, 2023, 07:14:01 PM »
Hi JD4923,

Welcome to Adlice.com Forum.
UCheck use Windows Registry to check for installed applications and their respective version number. For example :
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Everything]
"DisplayName"="Everything 1.4.1.1015 (x64)"
"UninstallString"="C:\\Program Files\\Everything\\Uninstall.exe"
"Publisher"="voidtools"
"EstimatedSize"=dword:00000c00
"DisplayIcon"="C:\\Program Files\\Everything\\Everything.exe"
"DisplayVersion"="1.4.1.1015"

If the "UninstallString" and "DisplayIcon" fields are empty, RogueKiller has no way to know where the application is located.
These fields are populated by the application installer, so there is no way for us to fix this at the moment.

Regards.

Reply #2December 23, 2023, 09:49:22 PM

00Eraser00

  • Newbie

  • Offline
  • *

  • 23
  • Reputation:
    0
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #2 on: December 23, 2023, 09:49:22 PM »
That's good to know, but there are a couple of applications that have both but have no path listed. Do both keys need to be present or is one of them enough?

Like JD4923 mentioned Notepad++ for example
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Notepad++]
"DisplayName"="Notepad++ (64-bit x64)"
"Publisher"="Notepad++ Team"
"MajorVersion"="8"
"MinorVersion"="6"
"UninstallString"="\"C:\\Program Files\\Notepad++\\uninstall.exe\""
"QuietUninstallString"="\"C:\\Program Files\\Notepad++\\uninstall.exe\" /S"
"DisplayIcon"="C:\\Program Files\\Notepad++\\notepad++.exe"
"DisplayVersion"="8.6"
"URLInfoAbout"="https://notepad-plus-plus.org/"
"VersionMajor"=dword:00000008
"VersionMinor"=dword:00000006
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"EstimatedSize"=dword:00004ed8

or MediaInfo
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo]
"DisplayName"="MediaInfo 23.11"
"Publisher"="MediaArea.net"
"UninstallString"="C:\\Program Files\\MediaInfo\\uninst.exe"
"DisplayIcon"="C:\\Program Files\\MediaInfo\\MediaInfo.exe"
"DisplayVersion"="23.11.1"
"URLInfoAbout"="http://MediaArea.net/MediaInfo"
"EstimatedSize"=dword:0000532a
"NSIS:Language"="1031"

or Steam
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam]
"DisplayName"="Steam"
"DisplayVersion"="2.10.91.91"
"Publisher"="Valve Corporation"
"URLInfoAbout"="http://www.steampowered.com/"
"HelpLink"="http://support.steampowered.com/"
"DisplayIcon"="C:\\Program Files (x86)\\Steam\\uninstall.exe"
"UninstallString"="C:\\Program Files (x86)\\Steam\\uninstall.exe"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001

And some more. I can list them all if you like.

Reply #3December 23, 2023, 10:01:06 PM

Curson

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2809
  • Reputation:
    100
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #3 on: December 23, 2023, 10:01:06 PM »
Hi 00Eraser00,

I'm pretty sure that Notepad++ was reporting location before.
It looks like a regression to me.

I will ask Tigzy to look about this. In the meantime, no need to post the full list, we need to review the code first.

Regards.
« Last Edit: December 23, 2023, 10:05:02 PM by Curson »

Reply #4December 24, 2023, 12:43:44 AM

JD4923

  • Newbie

  • Offline
  • *

  • 2
  • Reputation:
    0
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #4 on: December 24, 2023, 12:43:44 AM »
Thanks Curson for the explanation, and 00Eraser00 for the confirmation and additional info.

I think there's also a separate issue with portable apps, though I can't reproduce it now. Presumably portable apps are found by scanning for all program files - how else would they be found? And if so UCheck should be able to report where they are. Or are portable apps detected some other way?

I ask because after installing UCheck and running an initial scan it was reporting an old version of PuTTY (0.78), and a very old version of Mozilla Maintenance Service (115.5.0), both with "Location: Unknown." I eventually concluded:
  • The PuTTY install is a subset included with WinSCP. The UCheck message disappeared on its own after I installed PuTTY 0.80 to update the regular install, though the 0.78 files are still part of WinSCP
  • The Mozilla Maintenance Service installs are due to 2 separate portable Firefox installs. I deleted the maintenanceservice.exe files from each install which seemed to resolve the issue, but restoring those files hasn't caused UCheck to start alerting on them again.

So what is the logic for detecting and reporting on out-of-date portable installs?

Thanks.
« Last Edit: December 24, 2023, 02:27:59 AM by JD4923 »

Reply #5December 26, 2023, 06:09:28 PM

Curson

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2809
  • Reputation:
    100
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #5 on: December 26, 2023, 06:09:28 PM »
Hi JD4923,

Quote from: JD4923
Presumably portable apps are found by scanning for all program files - how else would they be found?
Indeed.

Quote from: JD4923
Or are portable apps detected some other way?
Portable apps are located by enumerating the filesystem. Installed appplications are enumerated using the Registry.

Subset applications should ultimately not be listed. It's the job of the main application to keep them updated.

Regards.

Reply #6January 13, 2024, 02:45:23 AM

DrStrange

  • Newbie

  • Offline
  • *

  • 3
  • Reputation:
    0
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #6 on: January 13, 2024, 02:45:23 AM »
Hi,
To fix uCheck (v 5.2.2.0) not showing a location for some programs, I examined the registry and found that for those programs the data for the registry string key InstallLocation was blank or the InstallLocation key was not present in the program's
Code: [Select]
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ or
Code: [Select]
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ registry key. Once I added this to the registry, uCheck showed the location for all those programs

I wonder would this also solve the problem where certain programs, because they do not update their registry DisplayVersion key when they update, so after they update they are shown by uCheck as not up to date, a well discussed example being Macrium Reflect.   

For example, this allows uCheck (and the Programs and Features Control Panel app) to show the location for MKVToolnix:
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MKVToolNix]
"DisplayIcon"="C:\Program Files\MKVToolNix\mkvtoolnix-gui.exe"
"DisplayName"="MKVToolNix 82.0.0 (64-bit)"
"DisplayVersion"="82.0.0"
"InstallLocation"="C:\Program Files\MKVToolnix\"
"NSIS:StartMenuDir"="MKVToolNix"
"Publisher"="Moritz Bunkus"
"UninstallString"="C:\Program Files\MKVToolNix\uninst.exe"
"URLInfoAbout"="https://www.bunkus.org/videotools/mkvtoolnix/"
« Last Edit: January 13, 2024, 03:04:09 PM by DrStrange »

Reply #7January 13, 2024, 03:53:32 PM

Curson

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2809
  • Reputation:
    100
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #7 on: January 13, 2024, 03:53:32 PM »
Hi DrStrange,

You are right.
Manually feeding the Uninstall applications subkeys fix the issue.

However, it's not a method that is practically sustainable.
First, messing with applications entries is not recommanded but let's imagine UCheck to do it, it will pose two major issues :
  • UCheck does not know the information to add. We would need to create a second database and a routine to check and add missing informations and registry values periodically.
  • After an update, the Uninstall subkey content is also updated, which mean we would need to find a way to synchronize new information added by the update with the existing values of the secondary database.
In summary, it would be a lot of work on our side and a great source of potential issues with wrong names, pathes, and versions.
We believe it is more productive to contact editors and ask them to properly fill their subkey when installing/updating their application.

Regards.

Reply #8January 13, 2024, 06:20:21 PM

DrStrange

  • Newbie

  • Offline
  • *

  • 3
  • Reputation:
    0
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #8 on: January 13, 2024, 06:20:21 PM »
Hi Curson,

I agree completely with your reply: The relevant program owners should be contacted and asked to include all of these subkeys in the Uninstall key during installation and also the program owner should ensure that the relevant subkeys are updated as required after a program update is installed. It is not uCheck's responsibility to add subkeys to the Registry that should have been added by the respective program's owners. uCheck is a software updater, not a software updater and registry repair program.
I was merely replying to the OP to explain why uCheck was not finding the path under Location and to provide information allowing the path to be manually added to uCheck if the OP wished to do so.

In any regard, adding the program's path to the location is only a cosmetic operation ie it does not affect uCheck's ability to determine the currently installed version. It is more important that the DisplayIcon and DisplayVersion keys are present and that the DisplayVersion key shows the correct version currently installed.

Thank you.
« Last Edit: January 13, 2024, 06:30:11 PM by DrStrange »

Reply #9January 20, 2024, 10:32:19 PM

Curson

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2809
  • Reputation:
    100
    • View Profile
Re: UCheck shows "Location: Unknown" for multiple apps
« Reply #9 on: January 20, 2024, 10:32:19 PM »
Hi DrStrange,

Thanks for the clarifications.

Regards.