Hii,
To do this, go to start menu > Settings > Bluetooth & devices > Printers > Select HP 7900 and click Remove devices.
https://support.hp.com/us-en/drivers/hp-envy-inspire-7900e-series/2100385902
Download the HP printer driver, run it as administrator, and follow the instructions.
Run the Autorun driver installation procedure to re-add the printer using the offline software.
While this is not a Microsoft website, it is the official site of [Envy 7900e/ HP].
Thanks