If that does not work try this:
Introduction
When attempting to reinstall an HP Deskjet USB printer on a USB port, the "Add New Hardware Wizard" fails to appear. Gray diamonds may appear in the Device Manager. These conditions may occur even after running the uninstaller from the printer driver CD-ROM.
Instructions
Follow the instructions in one of the solutions below. Start with Solution one and work through them as needed. There are four possible solutions.
Solution 1
Leave the USB cable plugged into the printer.
Click Start and Run. Type C:\windows\inf\other, and click OK.
Click View, Folder Options, View, Show All Files, then OK.
NOTE: Windows ME: Click Tools, Folder Options, View, then Show All Files.
Delete the file labeled Hewlett-PackardHPZ84098.INF
NOTE: For the 990C, delete HPZ990B.INF, the numbers after HPZ will reflect the model of the printer).
Close the Other window.
On the Windows Desktop screen, right-click My Computer and click Properties. This will open the System Properties window.
Choose the Device Manager tab, and find the line that reads, "USB Hewlett-Packard Deskjets."
Click the plus (+) on the left side of the line to open the file.
Highlight the entry for the HP Deskjet, and click Remove, then OK. If this entry is not present, proceed to Step 11.
With the USB cable still plugged in, run D:\setup from the installation CD, and click Remove or Uninstall the HP Deskjet software.
After the uninstallation, remove the USB cable from the back of the printer, then click the Restart button.
Restart the computer. Once it is running Windows, reinsert the USB cable. This should allow Plug and Play and installation of the driver to begin.
Follow the instructions on the screen to complete the installation of the printer driver.
If Plug and Play does not appear after completing the steps in Solution 1, proceed with Solution 2.
Solution 2
Right-click My Computer, and click Properties. This will open the System Properties window.
Choose the Device Manager tab and verify that there is an entry labeled USB Hewlett-Packard Deskjets.
Under USB Hewlett-Packard Deskjets, if there is an entry for an Unknown Device, double-click the Unknown Device, select the driver tab, and choose Update Driver. This will bring up the Update Device Driver Wizard.
Select Next twice, choose Specify a Location, and then Browse to the Win98USB folder on the CD-ROM (this process is identical to a normal USB installation). The USB port for the printer should be installed at this point.
NOTE: For the HP Deskjet 990C printer, the HPZ990B.INF is located on the root of the CD-ROM.
Install the printer driver using either Setup.exe or Add Printer Wizard by following the steps below. The Setup.exe installation will support full functionality of the printer features and is the recommended method. The Add Printer Wizard installation does not install the Online User's Guide.
SETUP.EXE method
Click Start, Run, then type the letter for the computer's CD-ROM drive (usually D:\ or E:\), followed by SETUP.EXE, and click OK.
Install the printer as if it were connected to a parallel port (LPT1). Since the printer is not physically connected to the parallel port, the driver will indicate that the printer cannot be located on LPT1. Continue with the driver installation when this error message appears.
After the driver has been installed, click Start, Settings, and Printers.
Right-click the HP Deskjet 840C series icon, and click Properties.
Select the Details tab.
Under Print to the following port, choose the USB port, and click OK. If the USB port is not in the port menu, close the driver Properties and the Printer Window, restart Windows, go back to the Printer Properties and check for the USB port in the Print to the Following Port window.
Close the Printers window, and try printing.
Add Printer Wizard
Click Start, Settings, and Printers.
Double-click Add Printer, click Next twice, then click Have Disk.
In the Install from Disk window, choose Browse, and navigate to the ENU/9XINF folder on the printer driver CD-ROM.
Select OK twice, and click Next.
Click the USB port, Next, and Finish to complete the driver installation.
NOTE: If the driver was downloaded from the Internet, be sure it is unzipped in its own folder on the hard-drive, and not from the Windows Desktop. Windows cannot find the USB driver if the driver is unzipped to the Desktop.
If the Add New Hardware Wizard does not appear after using Solutions 1 and 2, continue with Solution 3.
Solution 3
Disconnect the USB cable from the printer.
Uninstall the printer software.
Ensure the computer's USB port is enabled and properly configured by following the next four steps:
Click Start, Settings, Control Panel.
Double-click the System icon.
Click the Device Manager tab.
Click the plus (+) before Universal Serial Bus Controller.
If the USB Host Controller and USB Root Hub are visible, USB should be enabled.
If there are multiple hubs on the USB chain, try connecting the printer to a different hub, or test the hub with another USB device.
Ensure the printer is turned on and all the connections are firm.
Exit all software programs. Turn off the computer and printer. Turn on the printer, then turn on the computer.
Close any virus programs. Right-click the virus protection program's icon on the task bar, and select disable.
Attempt to reinstall. If a message occurs saying two-way communication is not working, click OK and continue with the installation.
If the Add New Hardware Wizard does not appear, follow the steps below:
Open the Device Manager by clicking Start, Settings, Control Panel, double-clicking the System icon and selecting the Device Manager tab.
Look for any entry in the Deskjet being installed. If found, select it and click Remove. Click OK on the next window.
Close the Device Manager.
Click Start, Find, Files and Folders.
In the Named field, type "HPZ*.*" (without quotes). The Look In field, should be C:\, to search the entire drive.
Delete the HPZ files found in the search, by highlighting them and pressing the DELETE key on the keyboard.
CAUTION: Deleting HPZ files may disable other HP products. Proceed with caution. Question the customer if there are other HP products on the system.
Next, search for the DRVDATA.BIN file. When found; right-click it, select Rename. Rename it DRVDATA.OLD. Type in the new name.
Next, search for the DRVIDX.BIN. Rename it to DRVIDX.OLD.
Close the Find Files and Folders window.
Run the uninstall, using the printer driver CD.
Disconnect the printer cable.
Restart the computer.
Connect the USB cable. The Add New Hardware Wizard should now appear.
Proceed with the installation.
The files renamed in Steps 7 and 8, may be changed back to their original names, by the same process.
Solution 4
In order to get Windows to re-recognize the printer, you may have to go into the registry editor and remove the appropriate keys and folders for your particular printer, as described below. First, unplug the printer and uninstall the printer driver with the CD uninstaller. Then, follow the instructions below:
Disconnect the USB cable from the back of the printer.
Click Start, then Run.
Type regedit.
Click Registry at the top. Click Export Registry File. This will bring up the Export Registry File save window.
In the File Name line, type HP, then click Save. This will back-up the registry to restore the computer if anything goes wrong.
Click plus (+) to the left of HKEY_LOCAL_MACHINE located on the left side of the registry editor.
Click plus (+) to the left of ENUM.
Click plus (+) to the left of USB.
Click the plus (+) to the left of the VID and PID folder that corresponds with the Deskjet printer.
VID_03F0&PID_2004 (Deskjet 630 series)
VID_03F0&PID_2004 (Deskjet 640 series)
VID_03F0&PID_0304 (Deskjet 810 series)
VID_03F0&PID_0404 (Deskjet 830 series)
VID_03F0&PID_0604 (Deskjet 840 series)
VID_03F0&PID_0104 (Deskjet 880 series)
VID_03F0&PID_0004 (Deskjet 895 series)
VID_03F0&PID_1204 (Deskjet 930 series)
VID_03F0&PID_1104 (Deskjet 950 series)
VID_03F0&PID_1004 (Deskjet 970 series)
VID_03F0&PID_3304 (Deskjet 990 series)
Depending on the monitor's resolution, you may have to click the folder to see the full name. There may be several VID_03F0&PID_XXXX entries, so be sure it ends in the correct printer number.
Under the VID_03F0&PID_XXXX should be a folder that has the same name as the printer's serial number, plus two additional characters. Highlight the folder name by clicking it.
Press DELETE.
Click Yes when it asks if you want to delete the key.
Click minus (-) to the left of Enum so that it hides the directory tree.
Click plus (+) to the left of Software.
Click plus (+) to the left of Hewlett-Packard.
Click plus (+) to the left of HPF.
Look for a folder named XXX (the printer model name) below HPF, and/or one of the following folders (Some systems will have both folders, other systems will have one or the other). Click the folder to the left of the number that corresponds with the Deskjet printer.
"89" for the 640 series
"11" for the 810 series
"23" for the 830 series
"90" for the 840 series
"12" for the 880 series
"15" for the 895 series
"93" for the 930 series
"94" for the 950 series
"95" for the 970 and 990C series (Open the folder and delete 970 or 990, leaving the 95 folder)
"Deskjet 990C" for the 990C series
Highlight the appropriate folders above and press DELETE on the keyboard.
Click Yes to delete the key.
Click the minus (-) to the left of Hewlett-Packard.
Click the minus (-) to the left of Software
Click the plus (+) to the left of System.
Click the plus (+) to the left of CurrentControlSet.
Click the plus (+) to the left of Services.
Click the plus (+) to the left of Class.
Click the plus (+) to the left of USB Deskjets.
Click on the folder named "0000". To verify this is the correct entry, look at the right side pane or window. At DriverDesc, verify that it says, DeskjetXXX, the model of the printer..
Delete the registry key named USB Deskjet.
CAUTION: In step 29, delete only the USB Deskjet key. There is a USB key that contains the USB controller information. This must not be deleted.
Close the registry editor and restart the computer.
The Plug and Play should now work; the Add New Hardware Wizard should now appear.
NOTE: In some cases, an unusual message may appear when the USB cable is plugged in after restarting. If this happens, restore the registry to the original by importing the registry file that was exported. Refer to the computer manufacturer for further help with USB.