How drivers are installed using INF files

Some drivers are placed on websites as INF files, so users often have difficulty installing them. In particular, an error appears when installing them in the standard way. Let’s see what INF files are and how they are installed.

Installing the driver via INF file in Windows

Contents

What is an INF file

An .inf file is a text file containing information about devices and installation files. It consists of many sections designed for specific purposes. For example, to copy files to the desired directories or make changes to the system registry. In general, a file of this format contains everything that is required for installing drivers, system installation packages, and various applications.

IMPORTANT. INF files may contain viruses, so you need to download them from trusted sites.

How to force install the driver and get around the error

The INF file is installed as follows:

  1. The PC user right-clicks on the INF file.
  2. Then select the line “Install” in the new window. Driver installation via INF file
  3. Then the driver installation process starts.

Often when installing such packages, the error “The selected INF file does not support this installation method” occurs, so you need to try installing it in other ways.

Error "Selected .inf file does not support this installation method"

Sometimes such an error occurs due to the incompatibility of the file with the bitness of the system, since some are provided for 86-bit operating systems, and some for 64-bit ones. If the problem is related to this, then you need to download the file compatible with your version of Windows. The bitness of the system can be viewed in the “System” section in the Windows Control Panel.

This issue can also occur because the DefaultInstall or DefaultInstall.Service sections are missing from the .inf file. But that doesn’t mean it can’t be installed.

In this case, you can try to put it in two ways:

  1. Through the “Device Manager”.
  2. Using the command line.

When using the first method, you need to know for which device this driver is intended.

In the first way, the file with the INF extension is installed like this:

  1. The Start menu opens the Taskbar. Switching to the "Control Panel"
  2. The “System” section is selected,
  3. Then “Device Manager” is selected from the tools menu. Device Manager section
  4. In the list of devices, click the desired one with the mouse and select the line “Update driver”. Item "Update driver"
  5. Next, select the line “Search for drivers on this computer.” "Search for drivers on this computer" button
  6. Then a folder is selected on the hard disk in which the downloaded and unpacked driver is located. In this case, there should be a checkmark next to “Including subfolders.”
  7. Then click the “Next” button, after which the file installation process should start. Selecting a driver to install

If you cannot install the driver in this way, then you can try installing it using the command line. To install drivers in INF format in Windows 7 using it, you need to do the following:

  1. First you need to run the command line with extended rights.
  2. Then you need to enter the pnputil command in it and press Enter. pnputil.exe command in Windows 7
  3. Then enter pnputil.exe -a D:wifinetathrx.inf (the name of the hard disk partition, the folder with the driver, and the INF file itself must be changed).
  4. Then you also need to press Enter, after which the package will be added to the system and a window will appear as in the bottom picture. pnputil command in Windows 7
  5. To make it work, you need to restart the PC or update the hardware configuration in the task manager. If a new version of the software is being installed, then you need to remove the old driver and perform the same steps.

In Windows 10, this is done in much the same way. To install the INF file you need:

  1. Run console as administrator.
  2. Enter the command pnputil.exe / add-driver * c:drivers (the disk partition and folder must be changed) and press Enter.

You can also type in a PowerShell script:

Get-ChildItem "C:Driver File Location" -Recurse -Filter "*inf" | ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install }

and install all INF files from the desired directory (the script contains the Drivers folder on drive C, so you need to specify the path to your directory). In these ways, you can install almost all drivers, including those for the printer.

ATTENTION. If the first method fails to install the software, then you need to try the second method. Of course, installing the driver using the device manager is more convenient and simple, but the command line is more functional.

Difficulties installing unsigned drivers

Sometimes a problem occurs with the installation of unsigned drivers, so you need to disable verification of their signatures. This is done in two ways, so you need to parse each.

Disabling signature verification via the command line looks like this:

  1. Runs with elevated command prompt.
  2. The bcdedit.exe /set nointegritychecks ON command is entered into it and ENTER is pressed. set nointegritychecks ON command in Windows 7
  3. Then the PC restarts for the changes to take effect.

To enable this feature, you must use the bcdedit.exe /set nointegritychecks OFF command, which must also be entered into this console and applied.

The second method involves disabling signature verification through boot options in Windows 10:

  1. First, the “Settings” of the system opens. To do this, press Win + i at the same time.
  2. Then select the “Update and security” section. Update & Security section
  3. Then the “Recovery” tab opens, and then in the “Special boot options” section, the “Restart” button is pressed. Restart now button
  4. Further, after restarting the PC, a window with various tools will appear on the display, in which you need to select the “Search and elimination” item, then in the new window click the “Other options” tab, and then select “Boot options” and click “Restart”. Troubleshooting button More options button Download Options button Clicking the "Reload" button
  5. After restarting, the display will offer all possible options for booting the system, in this list you need to select the line “Disable mandatory driver signature verification” with the F7 button. The item "Disable mandatory driver signature verification"
  6. Then the system will be loaded in this mode and before shutting down or restarting it will be possible to install unsigned drivers.

On Windows 7, to boot in this mode, you need to press F8 after starting the PC, and then select the same line.

Item "Disable mandatory driver signature verification"

ADVICE. To avoid this problem, you should always download drivers from the website of the manufacturer of the PC or peripheral equipment. That is, downloading the driver from the manufacturer’s website will allow you to install the driver on your PC and connect the installed equipment.

Repairing corrupted system files

If system files are damaged, they can be restored quite quickly with a standard Windows tool.

This is done as follows:

  1. The command line is launched with extended rights, after which the sfc /scannow command is entered into it and Enter is pressed. Running the scannow utility
  2. Then all system files will be scanned and, if damaged, the utility will replace them with serviceable ones. This sometimes takes a long time, so you need to be patient and wait. Scanning with scannow

If no problems are detected during the scanning process, a message will appear on the command line as in the bottom picture.

Scan result Scanning with scannow

IMPORTANT.  To eliminate all problems, it is advisable to do this procedure at least 3 times.

Today we have analyzed what INF files are, what they serve for and how to properly install drivers through them. We hope that in our article you have found answers to your questions and remain our regular reader!

Leave a Reply

Your email address will not be published. Required fields are marked *