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

Posted on 2011-04-22
Medium Priority
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 63

Accepted Solution

☠ MASQ ☠ earned 500 total points
ID: 35451057
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.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

840 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