How to uninstall a driver that manually installed by right-clicking on INF file?

  • Thread starter Thread starter andreaman
  • Start date Start date
A

andreaman

Guest
I installed an UBS filter driver as it couldn't be installed the official driver package. So it also cannot be uninstalled through the Windows uninstallation function and I have to manually uninstall it.

I heard of a solution about manual uninstallation made by inf installation with RUNDLL32.exe referring to the [DefaultUninstall] contents in the inf text.

It seems I should make some command lines and run them on Command Prompt or Powercell.

How to make them and uninstall the driver? The driver name is AMD USB Filter Driver, currently installed in my Win10 pro x64 (ver 1809).

Here is the inf contents.



★★★★★★★★★★★


; Usbfilter.inf

;

; Copyright (c) 2011-2017 Advanced Micro Devices Inc.

;



[Version]

Signature = "$Windows NT$"

Class = USB

ClassGUID = {36FC9E60-C465-11CF-8056-444553540000}

Provider = %AMD%

DriverPackageType=ClassFilter

DriverPackageDisplayName="AMD USB Filter Driver"

CatalogFile=usbfilter.cat

DriverVer = 10/10/2017,2.1.11.304



;

; General installation section

;



[DefaultInstall]

CopyFiles = usbfilter.Files

CopyInf = usbfilter.inf

Addreg = usbfilter.AddReg



[DefaultUnInstall]

DelFiles = usbfilter.DelFiles

Delreg = usbfilter.DelReg





;;

;;x86 install Section

;;

[DefaultInstall.NT]

CopyFiles = usbfilter.Files

CopyInf = usbfilter.inf

Addreg = usbfilter.AddReg





[DefaultUnInstall.NT]

DelFiles = usbfilter.DelFiles

Delreg = usbfilter.DelReg







;;

;;AMD64 install Section

;;

[DefaultInstall.NTAMD64]

CopyFiles = usbfilter.Files

CopyInf = usbfilter.inf

Addreg = usbfilter.AddReg



[DefaultUnInstall.NTAMD64]

DelFiles = usbfilter.DelFiles

Delreg = usbfilter.DelReg







[DestinationDirs]

DefaultDestDir = 12

usbfilter.Files = 12



[Manufacturer]

%AMD%=AMD, NTamd64



;=======================================================================

; 32-Bit NT Driver

;=======================================================================



[AMD]

%usbfilter.DrvDesc%=usbfilter,{36FC9E60-C465-11CF-8056-444553540000}\usbfilter





[usbfilter]

CopyFiles=usbfilter.Files



[usbfilter.HW]

Addreg = usbfilter.AddReg



[usbfilter.Files]

usbfilter.sys



[usbfilter.Services]

AddService = usbfilter, , usbfilter.Service.Install



;========================================================================

; 64-Bit NT Driver

;========================================================================



[AMD.NTamd64]

%usbfilter.DrvDesc%=usbfilter,{36FC9E60-C465-11CF-8056-444553540000}\usbfilter



;[usbfilter64]

;CopyFiles=usbfilter64.Files



;[usbfilter64.HW]

;Addreg = usbfilter64.AddReg



;[usbfilter64.Files]

;usbfilter.sys



;[usbfilter64.Services]

;AddService = usbfilter, , usbfilter64.Service.NTAMD64.Install

;========================================================================









[usbfilter.AddReg]

HKLM, System\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}, UpperFilters, 0x00010008, usbfilter









[usbfilter.DelFiles]

usbfilter.sys,,,1



[usbfilter.DelReg]

HKLM, System\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}, UpperFilters, 0x00010008, usbfilter





;

; Service installation section

;



[DefaultInstall.Services]

AddService = usbfilter, , usbfilter.Service.Install



[DefaultInstall.NT.Services]

AddService = usbfilter, , usbfilter.Service.Install



[DefaultInstall.NTAMD64.Services]

AddService = usbfilter, , usbfilter.Service.Install



[usbfilter.Service.Install]

DisplayName = %UsbFilter.SVCDESC%

ServiceType = 1 ; SERVICE_KERNEL_DRIVER

StartType = 3 ; SERVICE_DEMAND_START

ErrorControl = 1 ; SERVICE_ERROR_NORMAL

ServiceBinary = %12%\usbfilter.sys

LoadOrderGroup = PNP Filter

AddReg = Other_Reg_Entries



[Other_Reg_Entries]

HKR, Parameters, NB, 0x00000001, 22, 10, 00, 96, 00, 00, 01, 00, 02, 10, 00, 96, 00, 00, 01, 00, 22, 10, 01, 96, 00, 00, 01, 01, 02, 10, 01, 96, 00, 00, 01, 01, 22, 10, 05, 17, 00, 00, 01, 00, 22, 10, 10, 15, 00, 00, 01, 00, 22, 10, 10, 14, 00, 00, 01, 00 ,22, 10, 22, 14, 00, 00, 01, 00

HKR, Parameters, SB, 0x00000001, 02, 10, 85, 43, 39, 3F, 01, 07, 02, 10, 85, 43, 40, 4F, 01, 07, 22, 10, 0B, 78, 11, 18, 01, 07

HKR, Parameters, DisOhciPrefetch, 0x00000001, 02, 10, 85, 43, 40, 4F, 01, 00

HKR, Parameters, DisAlinkL1PState, 0x00000001, 02, 10, 85, 43, 40, 4F, 00, 03, 22, 10, 0B, 78, 11, 18, 00, 07

HKR, Parameters, OhciDevIdList, 0x00000001, 02, 10, 97, 43, 00, 12, 00, 01, 02, 10, 97, 43, 00, 13, 00, 01,02, 10, 97, 43, 00, 16, 00, 01, 02, 10, 99, 43, 00, 14, 05, 01

HKR, Parameters, PC6CPUID, 0x00000001, 15, 15, 10, 1F, 01, 00, 00, 00, 15, 15, 20, 2F, 01, 00, 00, 00

HKR, Parameters, CFoHCPUID, 0x00000001, 15, 15, 10, 1F, 01, 01, 0A, 40

HKR, ,BootFlags ,0x00010001, 20



;;

;;Uninstall service section

;;

[DefaultUnInstall.Services]

DelService=usbfilter,0x00000200,,





[DefaultUnInstall.NT.Services]

DelService=usbfilter,0x00000200,,





[DefaultUnInstall.NTAMD64.Services]

DelService=usbfilter,0x00000200,,



;[usbfilter64.Service.NTAMD64.Install]

;DisplayName = %UsbFilter.SVCDESC%

;ServiceType = 1 ; SERVICE_KERNEL_DRIVER

;StartType = 3 ; SERVICE_DEMAND_START

;ErrorControl = 1 ; SERVICE_ERROR_NORMAL

;ServiceBinary = %12%\usbfilter.sys

;LoadOrderGroup = PNP Filter





[SourceDisksNames]

1=%DiskId%



[SourceDisksFiles.x86]

usbfilter.sys = 1,\x86



[SourceDisksFiles.amd64]

usbfilter.sys = 1,\x64



;

; Localizable Strings

;



[Strings]



AMD = "Advanced Micro Devices Inc."

service_desc = "AMD USB Filter Driver"

UsbFilter.SVCDESC = "AMD USB Filter Driver"

DiskId = "AMD USB Filter Driver Install disk (1)"

usbfilter.DrvDesc = "AMD USB Filter Driver"



REG_DWORD = 0x00010001





★★★★★★★★★★★

Continue reading...
 
Back
Top