How do I know the reason for the failure of uninstalling my windows driver?

MD 0 Reputation points
2024-01-05T00:50:57.8533333+00:00

Run the command below to install my windows driver:

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 C:\mydriver.inf

Run the command below and I can see my windows driver, which means that the installation was successful:

driverquery

I tried to run the command below to uninstall my windows driver. However, when I run driverquery, it still shows my windows driver. How do I know why the uninstallation failed?

rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 C:\mydriver.inf

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-08T08:04:47.9633333+00:00

    Hi Mingde,

    Generally speaking, the device installation text log (SetupAPI.dev.log) and the application installation text log (SetupAPI.app.log) will record some information for installation/uninstallation errors. You can locate to %SystemRoot%\inf to see is there is any errors for the driver.

    More reference:

    SetupAPI Device Installation Log Entries - Windows drivers | Microsoft Learn

    SetupAPI Logging - Windows drivers | Microsoft Learn

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.