Don't. Just don't. G502 HERO firmware update through G HUB is broken. Waited for over 1.5h with the mouse "updating" and not working, and at the end had to disconnect and reconnect
Logitech G502 Driver & Software Update | Download For Windows 11
Logitech Mouse G502 Hero Driver And Software Setup Install Download
Logitech G502 Hero Driver and Software Download - Logi Series