What is the purpose of .inf file for HP driver install?

Posted on 2011-04-22
Last Modified: 2013-12-15
I had to install a driver on my computer (Windows XP operating system) for the HP Photosmart 8750 printer. I downloaded the driver from HP website and ran the .exe. The .exe unzipped several files into a temp directory that included a .inf. Typically, when I clicked on an .exe it do a full driver install from a - z. This time, however, it stopped once the temp directory of files was set up. My questions:

1. What is this type .inf file and its purpose?
2. Why did HP not just write an .exe that carried the install all the way?
3. How do you use Window XP add printer functionality to install the driver using the .inf?
Question by:Big__Al
    1 Comment
    LVL 62

    Accepted Solution

    1) The .inf file contains the information Windows needs to process the contents of the installtion file folder, it also identifies the registry entries needed and provides a check against the product hardware ID that the driver selected is appropriate for the device.
    See also the MSDN definitions

    2) The .EXE you download from the HP site is effectively a .zip file which has an .exe shell so you don't need WinZip to unpack it.  HP are using that format to save you (and them) bandwidth on downloading the file which you decompress once it's arrived.  That leaves you with the actual installer.

    When you run the downloaded .EXE (the zipfile) you'll be given an option to "Run Setup" once the folder has been unpacked - Setup is the actual installer.

    3) If you don't want to use the HP installer ("Setup.exe") then having unpacked the file go to Printers and Faxes, select Add printer and when the Choose your printer dialogue comes up use the Have Disk option to browse to the folder you unpacked.  The printer Wizard will identify the .inf files and offer you those Photosmart printers to choose from.

    You may lose some functionality by doing that as the HP Toolbox software and scanning tools won't be installed but some users prefer to work without this.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now