Page 1 of 1

Package installation: None is not a valid HKEY in this context

Published: March 25, 2025 - 3:42 PM
by aleduc
Good morning,

WAPT version 2.5.5.15591 Enterprise version.
The server is running Debian 12, while the client machines are running Windows 10 Pro and 11.

Recently, when installing packages (a problem present on several packages), I get the following error:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4235, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptmhlzor1w\setup.py", line 15, in install
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 3620, in installed_softwares
    result = list_fromkey("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 3579, in list_fromkey
    display_name = reg_getvalue(appkey, 'DisplayName', '')
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2783, in reg_getvalue
    value = winreg.QueryValueEx(key, name)[0]
TypeError: None is not a valid HKEY in this context

TypeError: None is not a valid HKEY in this context
The packages in question are not modified; they are simply downloaded from the store. Furthermore, the registry keys are indeed present in the requested location: Software\Microsoft\Windows\CurrentVersion\Uninstall

Also, I don't know where to start my search. Any suggestions? :)

Sincerely,

Re: Package installation: None is not a valid HKEY in this context

Published: March 25, 2025 - 5:48 PM
by dcardon
Hi Alexis,

it seems there are some programs with a missing DisplayName in the registry. If I remember correctly, this issue is better handled in version 2.6. You can test it on a machine by updating it; it should work correctly with a server running version 2.5.

Regards,

Denis