Driver Uninstallation in Windows 2000

Hi

I need to uninstall the application specific device drivers at the time of
application uninstallation. I’m writing a custom application driver
installation program to install the drivers using the SetupAPI
(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller,
UpdateDriverForPlugAndPlay & so forth).

The driver is installed, registry is updated with the inf entries & driver
is running. During the uninstallation process I use the following
SetupAPIs(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller with DIF_REMOVE
parameter / SetupDiRemoveDevice) to uninstall the driver. However, this
does’t do the needful.

Can someone tell me where I’m wrong?
Any sample programs, other details regarding this problem would be
appreciated.

Thanks,
Vedha

How about using the src\general\setup\remove sample in the DDK to
uninstall the device?

-Eliyas

-----Original Message-----
From: Vedha S [mailto:xxxxx@hpsblr.soft.net]
Sent: Tuesday, November 28, 2000 12:52 AM
To: NT Developers Interest List
Subject: [ntdev] Driver Uninstallation in Windows 2000

Hi

I need to uninstall the application specific device drivers at the time
of
application uninstallation. I’m writing a custom application driver
installation program to install the drivers using the SetupAPI
(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller,
UpdateDriverForPlugAndPlay & so forth).

The driver is installed, registry is updated with the inf entries &
driver
is running. During the uninstallation process I use the following
SetupAPIs(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller with
DIF_REMOVE
parameter / SetupDiRemoveDevice) to uninstall the driver. However, this
does’t do the needful.

Can someone tell me where I’m wrong?
Any sample programs, other details regarding this problem would be
appreciated.

Thanks,
Vedha


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Hi Vendha,

I actually have a question for you. I’ve actually been trying to create an
installer that uses the Setup API and have been looking for examples on
doing so. Would it be possible for you to help me with this?

Thank You,

Yousef Hamade
xxxxx@fmr.com

-----Original Message-----
From: Vedha S [mailto:xxxxx@hpsblr.soft.net]
Sent: Tuesday, November 28, 2000 3:52 AM
To: NT Developers Interest List
Subject: [ntdev] Driver Uninstallation in Windows 2000

Hi

I need to uninstall the application specific device drivers at the time of
application uninstallation. I’m writing a custom application driver
installation program to install the drivers using the SetupAPI
(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller,
UpdateDriverForPlugAndPlay & so forth).

The driver is installed, registry is updated with the inf entries & driver
is running. During the uninstallation process I use the following
SetupAPIs(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller with DIF_REMOVE
parameter / SetupDiRemoveDevice) to uninstall the driver. However, this
does’t do the needful.

Can someone tell me where I’m wrong?
Any sample programs, other details regarding this problem would be
appreciated.

Thanks,
Vedha


You are currently subscribed to ntdev as: xxxxx@fmr.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

You can find the samples under “src\general\setup” in the DDK. It has
samples for installation & uninstallation of drivers.
Thanks to Mr. Eliyas Yakub who replied for my query pointing out these
samples.

-Vedha

Subject: RE: Driver Uninstallation in Windows 2000
From: “Hamade, Yousef”
Date: Mon, 4 Dec 2000 10:48:42 -0500
X-Message-Number: 4

Hi Vendha,

I actually have a question for you. I’ve actually been trying to
create an
installer that uses the Setup API and have been looking for examples
on
doing so. Would it be possible for you to help me with this?

Thank You,

Yousef Hamade
xxxxx@fmr.com

-----Original Message-----
From: Vedha S [mailto:xxxxx@hpsblr.soft.net]
Sent: Tuesday, November 28, 2000 3:52 AM
To: NT Developers Interest List
Subject: [ntdev] Driver Uninstallation in Windows 2000

Hi

I need to uninstall the application specific device drivers at the
time of
application uninstallation. I’m writing a custom application driver
installation program to install the drivers using the SetupAPI
(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller,
UpdateDriverForPlugAndPlay & so forth).

The driver is installed, registry is updated with the inf entries &
driver
is running. During the uninstallation process I use the following
SetupAPIs(SetupDiCreateDeviceInfo, SetupDiCallClassInstaller with
DIF_REMOVE
parameter / SetupDiRemoveDevice) to uninstall the driver. However,
this
does’t do the needful.

Can someone tell me where I’m wrong?
Any sample programs, other details regarding this problem would be
appreciated.

Thanks,
Vedha