Re: Uninstall a Scanner Driver via DifxApp
- From: Ben Greenberg <schnable@xxxxxxxxx>
- Date: Wed, 9 Jan 2008 12:52:27 -0800 (PST)
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
.
- Follow-Ups:
- Re: Uninstall a Scanner Driver via DifxApp
- From: Maxim S. Shatskih
- Re: Uninstall a Scanner Driver via DifxApp
- References:
- Uninstall a Scanner Driver via DifxApp
- From: Ben Greenberg
- Re: Uninstall a Scanner Driver via DifxApp
- From: Maxim S. Shatskih
- Uninstall a Scanner Driver via DifxApp
- Prev by Date: Re: NDIS test app needed
- Next by Date: [Q] Sample NWF Driver Sets NumOfTXBuffers To 0
- Previous by thread: Re: Uninstall a Scanner Driver via DifxApp
- Next by thread: Re: Uninstall a Scanner Driver via DifxApp
- Index(es):
Relevant Pages
|
Loading