glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
252 stars 61 forks source link

Fix rustdesk id not detected when not installed in default location on Windows #756

Closed Whaxion closed 2 months ago

Whaxion commented 2 months ago

On Windows, when RustDesk is installed elsewhere than C:\Program Files\RustDesk, the agent cannot get the ID. This fix should find the executable from the registry (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\InstallLocation) and thus be able to get the ID.

Whaxion commented 2 months ago

Hello @g-bougard

I've made the changes requested and have tested it and it seems to work.