I am working on an extension of an existing USB device driver and try to find out how the .INF file works. I believe that I have it right now, the driver installs and works. It also appears in the Add or Remove Programs list.
I found that when I remove the driver from Add / Remove, it seems that something does not do much. This was in .INF since I inherited it:
[myUninstall]
DelReg = myDelReg
[MyDelReg]
HKLM, "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\myName"
I cannot find other links, even if "myName" is installed in the Uninstall registry.
I modified .INF to have this:
[DefaultUninstall]
myUninstall
[myUninstall]
DelFiles = ... a list of files ...
DelDirs = UNINST.Dirs
DelReg = UNINST.Regs
Cleanup = 1
[UNINST.Dirs]
%16422%\%InstallDir%
[UNINST.Regs]
myDev.AddReg
myDev.CommonRegs
[myDev.AddReg] ; same definition used for installing
HKR,,Drivers,Subclasses,,"wave,midi,mixer,aux"
...
[myDev,CommonRegs] ; same definition used for installing
HKR, Parameters, BufferSize, 0x0010001, 256
...
, " " , . "dpinst/c" setupapi.log, . dpinst , .
, . , , PnP- .INF Uninstall. , ?