Uninstalling a (CDROM) class filter driver

Hi All,

I’ve been researching on how to uninstall my (CDROM) class filter driver.
To uninstall, I have been thinking of the following ways:

  1. (Brute force) - delete all the driver’s registry keys programmatically
    (using RegDeleteKey, etc.)
  2. Set my driver’s “Start” in registry to 0x4(SERVICE_DISABLED) and then
    deleting the driver’s registry after reboot

Are any of the two safe enough? While researching, I also tried to “stop”
my filter driver (using ControlService(…SERVICE_CONTROL_STOP…), but failed
with ERROR_INVALID_SERVICE_CONTROL. I was thinking that if it were
possible, maybe I could stop my driver before uninstalling it.

I had been searching the archives and the DDK regarding my problem but
couldn’t find a sure answer, and so I have decided to ask for your help:(

Thanks so much.

I you really want to uninstall, then you need to remove everything you
installed, not just stop the service.

Have you tried using your inf file, with DefaultUninstall section? If you
installed with an INF, it already lists all the things that need to be
undone.

If you are trying to stop your service, you need to a) have a good and
complete driver unload routine, and all the device stacks you are attached
to need to be restartable. If one of them has mounted media, this is not
the case.

  • Dan.

----- Original Message -----
From: “Raneil Ensomo”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, February 01, 2006 7:23 PM
Subject: [ntdev] Uninstalling a (CDROM) class filter driver

> Hi All,
>
> I’ve been researching on how to uninstall my (CDROM) class filter driver.
> To uninstall, I have been thinking of the following ways:
>
> 1. (Brute force) - delete all the driver’s registry keys programmatically
> (using RegDeleteKey, etc.)
> 2. Set my driver’s “Start” in registry to 0x4(SERVICE_DISABLED) and then
> deleting the driver’s registry after reboot
>
> Are any of the two safe enough? While researching, I also tried to “stop”
> my filter driver (using ControlService(…SERVICE_CONTROL_STOP…), but
> failed
> with ERROR_INVALID_SERVICE_CONTROL. I was thinking that if it were
> possible, maybe I could stop my driver before uninstalling it.
>
> I had been searching the archives and the DDK regarding my problem but
> couldn’t find a sure answer, and so I have decided to ask for your help:(
>
> Thanks so much.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@privtek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks a lot:) I can now uninstall it using DefaultUninstall section as you
suggested. Since my service cannot be stopped, system removes it after the
next reboot.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Dan Kyler
Sent: Thursday, February 02, 2006 11:36 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Uninstalling a (CDROM) class filter driver

I you really want to uninstall, then you need to remove everything you
installed, not just stop the service.

Have you tried using your inf file, with DefaultUninstall section? If you
installed with an INF, it already lists all the things that need to be
undone.

If you are trying to stop your service, you need to a) have a good and
complete driver unload routine, and all the device stacks you are attached
to need to be restartable. If one of them has mounted media, this is not
the case.

  • Dan.

----- Original Message -----
From: “Raneil Ensomo”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, February 01, 2006 7:23 PM
Subject: [ntdev] Uninstalling a (CDROM) class filter driver

> Hi All,
>
> I’ve been researching on how to uninstall my (CDROM) class filter driver.
> To uninstall, I have been thinking of the following ways:
>
> 1. (Brute force) - delete all the driver’s registry keys programmatically
> (using RegDeleteKey, etc.)
> 2. Set my driver’s “Start” in registry to 0x4(SERVICE_DISABLED) and then
> deleting the driver’s registry after reboot
>
> Are any of the two safe enough? While researching, I also tried to “stop”
> my filter driver (using ControlService(…SERVICE_CONTROL_STOP…), but
> failed
> with ERROR_INVALID_SERVICE_CONTROL. I was thinking that if it were
> possible, maybe I could stop my driver before uninstalling it.
>
> I had been searching the archives and the DDK regarding my problem but
> couldn’t find a sure answer, and so I have decided to ask for your help:(
>
> Thanks so much.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@privtek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@eppi.epson.com.ph
To unsubscribe send a blank email to xxxxx@lists.osr.com