Re: Uninstall a Scanner Driver via DifxApp



Thanks for reply Maxim,

If uninstalling the driver is not supported, what is the best practice
in this case?

The device in question is a USB scanner; at install time, we place
files that allow TWAIN and WIA to function correctly. At uninstall,
we remove these files. If we continue to allow the MSI to do its
uninstall routine and remove these files, the user can reconnect their
scanner successfully and see it as a WIA device, but attempting to
scan will fail. We install other files not directly related to the
scanner, so uninstall functionality is required.

Is it best to leave the files that keep the scanner operational, since
we can't remove the driver, or clean up after ourselves as best we
can?

Thanks,
Ben


On Jan 9, 1:26 pm, "Maxim S. Shatskih" <ma...@xxxxxxxxxxxxxxxx> wrote:
I would forget the very idea of uninstalling a PnP driver. It is just plain
not supported.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@xxxxxxxxxxxxxxxxxxxx://www.storagecraft.com

"Ben Greenberg" <schna...@xxxxxxxxx> wrote in message

news:12062194-8ffe-4716-8ae9-0a7f8f447f7f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hello all,

I am using DifxApp, via a merge module in an MSI, to install a scanner
driver. Everything works fine for install.

However, during uninstall, I get success messages in the log and files
are removed from System32 as expected. But, still, when the device is
connected to the machine, Windows recognizes it, doesn't say a peep,
and it shows up in Device Manager like everything is fine. In other
words, it is still loading the driver. But the device is unusable,
because all the files needed for the thing to actually work have been
removed by the MSI.

After uninstall, the registry key HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet\Enum\USB\Vid_07b3&Pid_0412 remains, which is the
relevant one for this device. If I manually delete this key, Windows
will no longer recognize the device and will prompt the user for
drivers. This is the behavior I want.

Why is DifxApp not removing this key? Is it ok to remove it manually
via a Custom Action or is something deeper going on here?

Thanks,
Ben

.



Relevant Pages

  • RE: Failure to run setup.exe files from CD-roms
    ... uninstall the driver ... not Add/Remove programs that different and uninstall your DVD from there ... I am able to install other software from the drives. ... "nass" wrote: ...
    (microsoft.public.windowsxp.help_and_support)
  • Problem with sgen driver.
    ... I used to use a scanner on my Sun Ultra 80 with Jorg Schilling's ... libsgc SCSI driver. ... I just installed the latest Solaris release and ... and install Sun's sgen driver as ...
    (comp.sys.sun.admin)
  • Re: Driver not loading...
    ... Next go to the Canon web site and download and install the newest ... Are there any yellow question marks in Device Manager? ... It then said that it was installing the driver and then it ... The printer function does work just fine but the scanner ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Fujitsu fi-4120C WIA problem
    ... > ScandAll to access the scanner using a TWAIN interface. ... If I then try to access the scanner using the WIA automation ... I plug in the scanner and install the latest driver from Fujitsu. ...
    (comp.periphs.scanners)
  • Re: Sound card issues...
    ... XP will almost immediately re-detect and install them. ... WDM Audio Compatibility Driver". ... Should I uninstall these ones and reboot? ... check for your base sound card shown ...
    (microsoft.public.windowsxp.general)

Loading