uninstall default driver and install my own?

I have to develop PCI card driver for our custom wireless card. My role is to develop PCI device driver. As I do not have hardware currently, I’m thinking of testing my driver using existing network card - RTL8139(A) fast Ethernet.

To do above, I uninstall driver provided by Microsoft. And When I restart the PC for installing my driver, default driver is installed again already. I went to registry also and made changes, but without any advantages.

Could somebody pour some light on how to uninstall default driver and install my own?

TIA,
Sanjeev

Hi,

If this is an MS certified device then network is active then driver will
get downloaded from MS’s site. Remove network cable to get rid of this.

If system is detecting new hardware device then it will go for its inf file,
where from system will locate installation media and if this is available
then system will install the original driver.
Remove the installation media or driver from installation media to stop it
from reinstalling.

Hope this will help.
Dev

-----Original Message-----
From: Sanjeev Manral [mailto:xxxxx@indiatimes.com]
Sent: Friday, November 14, 2003 12:33 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] uninstall default driver and install my own?

I have to develop PCI card driver for our custom wireless card. My role is
to develop PCI device driver. As I do not have hardware currently, I’m
thinking of testing my driver using existing network card - RTL8139(A) fast
Ethernet.

To do above, I uninstall driver provided by Microsoft. And When I restart
the PC for installing my driver, default driver is installed again already.
I went to registry also and made changes, but without any advantages.

Could somebody pour some light on how to uninstall default driver and
install my own?

TIA,
Sanjeev


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

You are currently subscribed to ntdev as: dsingh@in.rainbow.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi,

You need not uninstall the existing file. You can just select the update
driver and direct it to the directory that contains your new inf and driver
file.

Regards,
Susaant.

----- Original Message -----
From: “Sanjeev Manral”
To: “Windows System Software Devs Interest List”
Sent: Friday, November 14, 2003 12:33 PM
Subject: [ntdev] uninstall default driver and install my own?

> I have to develop PCI card driver for our custom wireless card. My role is
to develop PCI device driver. As I do not have hardware currently, I’m
thinking of testing my driver using existing network card - RTL8139(A) fast
Ethernet.
>
> To do above, I uninstall driver provided by Microsoft. And When I restart
the PC for installing my driver, default driver is installed again already.
I went to registry also and made changes, but without any advantages.
>
> Could somebody pour some light on how to uninstall default driver and
install my own?
>
> TIA,
> Sanjeev
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@redpinesignals.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Thanks Dev,

Hi,

If this is an MS certified device then network is active then driver will
get downloaded from MS’s site. Remove network cable to get rid of this.

If system is detecting new hardware device then it will go for its inf file,
where from system will locate installation media and if this is available
then system will install the original driver.
Remove the installation media or driver from installation media to stop it
from reinstalling.

Do you mean CD by installation media. I’ve already removed ethernet cable and there is no installation CD in my cd drive. Interestingly even if I change mydriver file’s name and copy it to system32/driver directory with name rtl8139.sys. It is getting replaced by original driver file within 1 minute automatically. I’m not sure where from windows is getting this original file again.

-Sanjeev

Hope this will help.
Dev

-----Original Message-----
From: Sanjeev Manral [mailto:xxxxx@indiatimes.com]
Sent: Friday, November 14, 2003 12:33 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] uninstall default driver and install my own?

I have to develop PCI card driver for our custom wireless card. My role is
to develop PCI device driver. As I do not have hardware currently, I’m
thinking of testing my driver using existing network card - RTL8139(A) fast
Ethernet.

To do above, I uninstall driver provided by Microsoft. And When I restart
the PC for installing my driver, default driver is installed again already.
I went to registry also and made changes, but without any advantages.

Could somebody pour some light on how to uninstall default driver and
install my own?

TIA,
Sanjeev

> Hi,

You need not uninstall the existing file. You can just select the update
driver and direct it to the directory that contains your new inf and driver
file.

Once I update driver, it is getting replaced by original driver file within 1 minute automatically. When My driver doesn’t work properly(it can not work properly because it is small test driver) windows tries to find original driver automatically. I’m not sure where from windows is getting this original file again.

Is there something where from I can stop this auto recovery?

-Sanjeev

Regards,
Susaant.

----- Original Message -----
From: “Sanjeev Manral”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, November 14, 2003 12:33 PM
> Subject: [ntdev] uninstall default driver and install my own?
>
>
> > I have to develop PCI card driver for our custom wireless card. My role is
> to develop PCI device driver. As I do not have hardware currently, I’m
> thinking of testing my driver using existing network card - RTL8139(A) fast
> Ethernet.
> >
> > To do above, I uninstall driver provided by Microsoft. And When I restart
> the PC for installing my driver, default driver is installed again already.
> I went to registry also and made changes, but without any advantages.
> >
> > Could somebody pour some light on how to uninstall default driver and
> install my own?
> >
> > TIA,
> > Sanjeev
> >

Sanjeev,
What is the exacte OS you are using.
Cyril
----- Original Message -----
From: “Sanjeev Manral”
To: “Windows System Software Devs Interest List”
Sent: Friday, November 14, 2003 1:41 PM
Subject: [ntdev] Re: uninstall default driver and install my own?

> > Hi,
> >
> > You need not uninstall the existing file. You can just select the update
> > driver and direct it to the directory that contains your new inf and
driver
> > file.
>
> Once I update driver, it is getting replaced by original driver file
within 1 minute automatically. When My driver doesn’t work properly(it can
not work properly because it is small test driver) windows tries to find
original driver automatically. I’m not sure where from windows is getting
this original file again.
>
> Is there something where from I can stop this auto recovery?
>
>
> -Sanjeev
>
>
> >
> > Regards,
> > Susaant.
> >
> > ----- Original Message -----
> > From: “Sanjeev Manral”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, November 14, 2003 12:33 PM
> > Subject: [ntdev] uninstall default driver and install my own?
> >
> >
> > > I have to develop PCI card driver for our custom wireless card. My
role is
> > to develop PCI device driver. As I do not have hardware currently, I’m
> > thinking of testing my driver using existing network card - RTL8139(A)
fast
> > Ethernet.
> > >
> > > To do above, I uninstall driver provided by Microsoft. And When I
restart
> > the PC for installing my driver, default driver is installed again
already.
> > I went to registry also and made changes, but without any advantages.
> > >
> > > Could somebody pour some light on how to uninstall default driver and
> > install my own?
> > >
> > > TIA,
> > > Sanjeev
> > >
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Windows 2000 Prof., it happens in XP also.

-Sanjeev

Sanjeev,
What is the exacte OS you are using.
Cyril
----- Original Message -----
From: “Sanjeev Manral”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, November 14, 2003 1:41 PM
> Subject: [ntdev] Re: uninstall default driver and install my own?
>
>
> > > Hi,
> > >
> > > You need not uninstall the existing file. You can just select the update
> > > driver and direct it to the directory that contains your new inf and
> driver
> > > file.
> >
> > Once I update driver, it is getting replaced by original driver file
> within 1 minute automatically. When My driver doesn’t work properly(it can
> not work properly because it is small test driver) windows tries to find
> original driver automatically. I’m not sure where from windows is getting
> this original file again.
> >
> > Is there something where from I can stop this auto recovery?
> >
> >
> > -Sanjeev
> >
> >
> > >
> > > Regards,
> > > Susaant.
> > >
> > > ----- Original Message -----
> > > From: “Sanjeev Manral”
> > > To: “Windows System Software Devs Interest List”
> > > Sent: Friday, November 14, 2003 12:33 PM
> > > Subject: [ntdev] uninstall default driver and install my own?
> > >
> > >
> > > > I have to develop PCI card driver for our custom wireless card. My
> role is
> > > to develop PCI device driver. As I do not have hardware currently, I’m
> > > thinking of testing my driver using existing network card - RTL8139(A)
> fast
> > > Ethernet.
> > > >
> > > > To do above, I uninstall driver provided by Microsoft. And When I
> restart
> > > the PC for installing my driver, default driver is installed again
> already.
> > > I went to registry also and made changes, but without any advantages.
> > > >
> > > > Could somebody pour some light on how to uninstall default driver and
> > > install my own?
> > > >
> > > > TIA,
> > > > Sanjeev
> > > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@wipro.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com

Windows 2000/XP will rename the third party .inf’s names into oem*.inf.

After the unistalltion of the RTL driver, delete the RTL driver’s
installation script which will be in inf directory , with name oem*.inf.
This will stop automatic installation of the RTL driver.

oem*.inf - * represents any one of 0,1,2…

You can use the same for XP also.

Cyril

----- Original Message -----
From: “Sanjeev Manral”
To: “Windows System Software Devs Interest List”
Sent: Friday, November 14, 2003 2:34 PM
Subject: [ntdev] Re: uninstall default driver and install my own?

> Windows 2000 Prof., it happens in XP also.
>
> -Sanjeev
>
> > Sanjeev,
> > What is the exacte OS you are using.
> > Cyril
> > ----- Original Message -----
> > From: “Sanjeev Manral”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, November 14, 2003 1:41 PM
> > Subject: [ntdev] Re: uninstall default driver and install my own?
> >
> >
> > > > Hi,
> > > >
> > > > You need not uninstall the existing file. You can just select the
update
> > > > driver and direct it to the directory that contains your new inf and
> > driver
> > > > file.
> > >
> > > Once I update driver, it is getting replaced by original driver file
> > within 1 minute automatically. When My driver doesn’t work properly(it
can
> > not work properly because it is small test driver) windows tries to find
> > original driver automatically. I’m not sure where from windows is
getting
> > this original file again.
> > >
> > > Is there something where from I can stop this auto recovery?
> > >
> > >
> > > -Sanjeev
> > >
> > >
> > > >
> > > > Regards,
> > > > Susaant.
> > > >
> > > > ----- Original Message -----
> > > > From: “Sanjeev Manral”
> > > > To: “Windows System Software Devs Interest List”

> > > > Sent: Friday, November 14, 2003 12:33 PM
> > > > Subject: [ntdev] uninstall default driver and install my own?
> > > >
> > > >
> > > > > I have to develop PCI card driver for our custom wireless card. My
> > role is
> > > > to develop PCI device driver. As I do not have hardware currently,
I’m
> > > > thinking of testing my driver using existing network card -
RTL8139(A)
> > fast
> > > > Ethernet.
> > > > >
> > > > > To do above, I uninstall driver provided by Microsoft. And When I
> > restart
> > > > the PC for installing my driver, default driver is installed again
> > already.
> > > > I went to registry also and made changes, but without any
advantages.
> > > > >
> > > > > Could somebody pour some light on how to uninstall default driver
and
> > > > install my own?
> > > > >
> > > > > TIA,
> > > > > Sanjeev
> > > > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@wipro.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@wipro.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

You have to play a bit with SetupCopyOemInf / SetupUninstallOEMInf

for installation
driver.inf->SetupCopyOemInf->oemxx.inf

for uninstallation
oemxx.inf->SetupUninstallOEMInf (unfortunately this function is available
only in XP)

In your case

  1. U need to get oemxx.inf file associated with currently installed driver
    SetupDiGetDriverInfoDetail …etc
  2. Then just call SetupUninstallOEMInf
  3. Install your driver

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Sanjeev Manral
Sent: Friday, November 14, 2003 8:03 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] uninstall default driver and install my own?

I have to develop PCI card driver for our custom wireless card. My role is
to develop PCI device driver. As I do not have hardware currently, I?m
thinking of testing my driver using existing network card - RTL8139(A) fast
Ethernet.

To do above, I uninstall driver provided by Microsoft. And When I restart
the PC for installing my driver, default driver is installed again already.
I went to registry also and made changes, but without any advantages.

Could somebody pour some light on how to uninstall default driver and
install my own?

TIA,
Sanjeev


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

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

> Once I update driver, it is getting replaced by original driver file within 1 minute automatically. When My driver doesn’t work properly(it can not work

properly because it is small test driver) windows tries to find original driver automatically. I’m not sure where from windows is getting this original file
again.

Is there something where from I can stop this auto recovery?

Make sure your replacement driver has a different name than the
original. As mentioned Windows File Protection will automatically
reverse any changes you try to make to one of the files it is
protecting (unless you disable it).

>within 1 minute automatically. I’m not sure where from windows is getting
this original file

again.

From DRIVERS.CAB somewhere in the system32 subdirs.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Search the web for “SFCDisable”.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Sanjeev Manral”
To: “Windows System Software Devs Interest List”
Sent: Friday, November 14, 2003 11:11 AM
Subject: [ntdev] Re: uninstall default driver and install my own?

> > Hi,
> >
> > You need not uninstall the existing file. You can just select the update
> > driver and direct it to the directory that contains your new inf and driver
> > file.
>
> Once I update driver, it is getting replaced by original driver file within 1
minute automatically. When My driver doesn’t work properly(it can not work
properly because it is small test driver) windows tries to find original driver
automatically. I’m not sure where from windows is getting this original file
again.
>
> Is there something where from I can stop this auto recovery?
>
>
> -Sanjeev
>
>
> >
> > Regards,
> > Susaant.
> >
> > ----- Original Message -----
> > From: “Sanjeev Manral”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, November 14, 2003 12:33 PM
> > Subject: [ntdev] uninstall default driver and install my own?
> >
> >
> > > I have to develop PCI card driver for our custom wireless card. My role
is
> > to develop PCI device driver. As I do not have hardware currently, I’m
> > thinking of testing my driver using existing network card - RTL8139(A) fast
> > Ethernet.
> > >
> > > To do above, I uninstall driver provided by Microsoft. And When I restart
> > the PC for installing my driver, default driver is installed again already.
> > I went to registry also and made changes, but without any advantages.
> > >
> > > Could somebody pour some light on how to uninstall default driver and
> > install my own?
> > >
> > > TIA,
> > > Sanjeev
> > >
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com