hp-support-head-portlet

Actions
Loading...

HP Customer Support

hp-contact-secondary-navigation-portlet

Actions
Loading...

hp-share-print-widget-portlet

Actions
Loading...

hp-concentra-wrapper-portlet

Actions
Loading...

HP Printers - Fatal Error 'Error 1304. Error writing to file C:\window\inf\HPxxxxx.inf' (MSI Error 1304) Displays During Software Installation in Windows XP

This document is for HP printer software installations in Windows XP for all HP LaserJet printers and for all HP inkjet printers released in 2009 or earlier.
While you install the HP software, a fatal error message displays on the computer: Error 1304. Error writing to file C:\window\inf\HPxxxxx.inf.
This error message displays in Windows when there are too many files in the INF folder.
Solution one: Delete all 0 KB sized files in the Windows INF folder
Follow these steps to show the hidden INF folder in Windows Explorer and delete the files that are 0 KB in size.
Step 1: Unhide the INF folder and sort the 0 KB sized files
Follow these steps to find the INF folder and sort the 0 KB files.
  1. On the Windows taskbar, right-click Start, and then click Explore All Users. Windows Explorer opens in a new window.
  2. In the Windows Explorer window, click Tools, and then click Folder Options. The Folder Options window opens.
  3. Click the View tab.
  4. Select Show hidden files and folders, and then click OK.
  5. In the left pane of the Windows Explorer window, scroll to the Windows or WinNT folder, and then click the expand icon next to the folder.
  6. Scroll down to the INF folder, and then click on the folder icon to open it in the right pane.
  7. In the Windows Explorer window, click View, and then click Details.
  8. In the right pane, click Size until Windows Explorer arranges the files from the smallest file size to the largest file size.
Step 2: Delete all files that are 0 KB from the INF folder
Follow these steps to delete all files in the INF folder that are 0 KB in size.
 caution:
Only delete the files that are 0 KB. If you delete any other files in the INF folder, Windows might not function correctly.
  1. On the right side of the Windows Explorer split window, click the first file that is 0 KB in size, and then scroll down the list to the last file that is 0 KB in size.
  2. Hold and press the Shift key to select all the files, between the first and last file, that are 0 KB.
  3. Press the Delete key to confirm the file deletion.
     note:
    If you delete the incorrect files, click Edit, and then click Undo Delete to restore the files.
  4. Close all open windows, and then restart the computer.
  5. Restart the software installation.
Solution two: Uninstall and reinstall the HP software
Follow these steps to uninstall, and then reinstall, the HP software.
Step 1: Perform a level-three uninstall
Use one of the following methods to uninstall the HP software.
Step 2: Reinstall the HP Software
HP recommends that you download and install the software from the HP website. This software is the most current and contains updates that might not be on your software CD.
If you have already downloaded the software, you do not have to download it again. Otherwise, follow these instructions to download and install the software.
  1. Turn on the printer.
  2. Disconnect the USB cable from the printer and the computer (if you already connected it). If the printer is connected to your network, leave it connected.
  3. Use one of the available methods to identify your printer model.
    The software and driver results page displays when the printer model is identified.
    Figure : Example of the Software and driver results page
    Image: Example of the Software and driver results window
  4. Check to see if your operating system is correctly identified. If your operating system is not correct, click Edit, select your operating system and version from the drop-down menus, then click Update.
  5. Under Driver - Product Installation Software, click Download next to the full feature driver (recommended), or click Basic Drivers for other driver download options.
  6. If an HP Download and Install Assistant window displays, select Use HP Download and Install Assistant (Recommended) or Download only, then click Next.
    Figure : Example of the HP Download and Install Assistant window
    Image: Example of the HP Download and Install Assistant window
  7. Follow the on-screen instructions to save the driver to your computer.
  8. If you used the Download only method, open or run the driver file, then follow the on-screen instructions to install the software.

hp-feedback-input-portlet

Actions
Loading...

hp-online-communities-portlet

Actions
Loading...

Ask the community!


Support Forum

Support Forum

Join the conversation! Find Solutions, ask questions, and share advice with other HP product owners. Visit now


hp-feedback-banner-portlet

Actions
Loading...

hp-country-locator-portlet

Actions
Loading...
Africa
Language: English

hp-detect-load-my-device-portlet

Actions
Loading...