cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Mauritzson
Level 3

DIFxDriverPackageUninstall leaves trace in the registry

Installscript Project

We have an application that install a number of drivers using DIFxDriverPackageInstall and DIFxDriverPackagePreInstall, this works fine.
The problem arises when we uninstall the drivers, for this we use DIFxDriverPackageUninstall: there are traces left in the registry.
Ex:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{50dd5230-ba8a-11d1-bf5d-0000f805f530}\##?#....

When we uninstall the drivers manually from the device manager these registry values are removed.

So now to my question: Is this a known limitation of InstallShield or are there something wrong with our installscript code or inf files?
Labels (1)
0 Kudos
(1) Reply
Cary_R
Level 11

Hi There,

By 'Uninstalling Manually', how are you accomplishing this? DifXApp.exe?

DifX API's are what InstallShield consumes to handle this, which is based on Microsoft libraries (in this case, I think it's the DriverPackageUninstall() function: http://msdn.microsoft.com/en-us/library/windows/hardware/ff544822(v=vs.85).aspx).

If you've got a method that works better, there's probably some way to invoke that in installscript code. I suspect it will boil down to a function in SetupApi.dll:

http://msdn.microsoft.com/en-us/library/aa377446(v=VS.85).aspx
0 Kudos