Hi there and welcome
What is the make and model of the printer?
Can you do the following please
On the printer control panel, press the Wireless button .
The Wireless menu displays.
Press the Selection button next to Settings.
Press the Down Arrow to select Restore Defaults, and then press OK.
Press OK again to confirm your selection.
Press the Wireless button , and then press the Selection button next to Settings.
Press the Down Arrow to select Wireless Setup Wizard, and then press OK.
The printer searches for available wireless networks.
Press the Down Arrow to select the name of your wireless network, and then press OK.
Follow the instructions on the control panel to connect the printer to your wireless network
Once done, then on the computer try to install it again
Let me know the results please.