Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8350513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:20:32+00:00 2026-06-09T08:20:32+00:00

I manually install my driver using an .inf file. Until now, I deleted the

  • 0

I manually install my driver using an .inf file. Until now, I deleted the oem.inf and .pnf files from the inf folder to uninstall. Whenever I install a new driver I delete/uninstall the old inf and pnf files.

In my old uninstalls (by deleting .inf and .pnf files), I didn’t modify or delete any registry settings.

In this case do I want to change or remove any settings from the registry (for example: devnode)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:20:33+00:00Added an answer on June 9, 2026 at 8:20 am

    You should use the SetupUninstallOEMInf function to uninstall the .INF (and subsequently .PNF) files. This will take care of the details. pnputil (on Vista and higher) should do the equivalent thing from the command line. However, this function will not delete drivers that are currently installed (e.g. associated with a devnode).

    1. Why are you uninstalling the old driver first? The user might already installed your driver for at least one devnode. Why not use a Microsoft-sanctioned solution such as DpInst? It will do the work required to update the driver.

    2. Passing SUOI_FORCEDELETE to SetupUninstallOEMInf wouldn’t be a good idea, cause you’d end up with lingering .INF references in your devnodes (in the registry).

    3. At work I wrote a utility I called DriverUninstaller that deletes the devnodes and then deleted the INFs. I only use this utility for uninstallations. Upgrades are handled by DpInst, as they should be. The flow is roughly:

      1. Enumerate them with SetupAPI (e.g. by device class if your device class is unique)
      2. For each devnode, call SetupDiCallClassInstaller(DIF_REMOVE, ...)
      3. Call SetupDiBuildDriverInfoList to find all .INF files for my device
      4. For each INF, call SetupUninstallOEMInf

    If there’ll be interest in this utility, I might be able to persuade my employer to open-source it 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm used to manually install GCC from source before on Ubuntu and it was
I am new to installers and up until now have just been manually executing
I tried with both the web install platform and manually but both don't work.
Trying to figure out how to install rails plugins manually on windows so I
I know how to use php-markdown by loading it manually, but decided to install
I am able to manually get the user's data, but not programatically. Using the
I need to install the libusb-win32 driver on Windows 7 64 bit machines. This
Is it possible to specify extra header files to include from the command line
I'm trying to install mgo which is a mongo-driver written in golang. The standard
I want to migrate an exsisting Umbraco install from our developer's website into my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.