Annoyances.org
Home » Windows Me Discussion Forum » Message 1198208810 Search | Help | Home
  
re: Windows uninstalls device driver on shutdown
Thursday, December 20, 2007 at 7:46 pm
Windows Me Annoyances Discussion Forum
Posted by Ed (570 messages posted)


The solution to this problem was to uninstall the version of the driver files supplied with the PCI Card, and install version 2.0.2.0 instead from -

  http://www.usb-drivers.com/drivers/83/83589.htm

Later versions of the software use the GUID format in the Windows registry keys, which makes the installation unstable in Windows ME.


The procedure to uninstall the USB 2.0 software supplied with the PCI Card manually is-


1. Boot into SAFE Mode.

NB: This must be done in Safe Mode because device drivers are *not* loaded when in Safe Mode, and so can be deleted.


2. Open Device Manager and delete all USB 1.1 and USB 2.0 devices:

    Start > Settings > Control Panel > System > Device Manager


3. Delete these files:

    C:\COMPATID.txt

    C:\Windows\Drivers\ousb2\ousb2.inf
    C:\Windows\Drivers\ousb2\ousb2hub.sys
    C:\Windows\Drivers\ousb2\ousbehci.sys

    C:\Windows\INF\oem4.inf
    C:\Windows\INF\ousb2.inf

    C:\Windows\INF\Other\OWCousb2.inf

    C:\Windows\System32\Drivers\ousb2hub.sys
    C:\Windows\System32\Drivers\ousbehci.sys


4. Delete these registry keys:

    HKEY_LOCAL_MACHINE\Enum\USB2\ROOT_HUB20

    HKEY_LOCAL_MACHINE\Enum\{B8139C20-CF94-11D5-AEF7-0002B30625C5}

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\ {B8139C20-CF94-11d5-AEF7-0002B30625C5}

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\ {36FC9E60-C465-11CF-8056-444553540000}

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\OWCUSB

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\USB


5. Shut down; then unplug the PCI Card (inside the case).

NB: *Also* unplug all USB devices from the USB 1.1 and 2.0 ports so that they don't interfere with the re-installation of the USB drivers.


6. Compact the registry at the DOS prompt with SCANREG /OPT /FIX to delete the old settings, *before* restarting the computer.


7. Boot up: this will cause Windows to automatically re-detect and reinstall the USB 1.1 device (controller) on the motherboard.


8. Manually update the driver file for the device "Intel 82801AA USB Universal Host Controller". In Device Manager, go to:

    Properties > Update Driver > Specify the location of the driver

NB: Location of driver is: "C:\Windows\INF\usb.inf"


9. Reinstall the USB 2.0 drivers:

Run the OrangeWare USB 2.0 installation program; but *only* the program for the version desired (i.e. v2.0.2.0)

NB: Right-clicking an .INF file is not enough to install the drivers correctly. Only the .EXE program can do that.

NB: This is an OrangeWare driver set, so all the filenames will begin with O (for Orangeware), or with OWC (for OrangeWare Corporation).

NB: Then check the locations (above) to establish what files and what registry keys the program has installed.

        * U2v2_02.exe (version 2.0.2.0) installs these files -

        In C:\Windows\Drivers\ousb2 :
          ousb2.inf
          ousb2hub.sys
          ousbehci.sys

        In C:\Windows\INF :
          oem4.inf [a copy of ousb2.inf]

        In C:\Windows\System32\Drivers :
          ousb2hub.sys
          ousbehci.sys

    And this registry key -

        HKLM\Enum\USB2\ROOT_HUB20

NB: *No* registry keys were added at:

          HKLM\Enum\{B8139C20-CF94-11D5-AEF7-0002B30625C5}

          HKLM - System - CurrentControlSet - OWC USB ousbehci.sys

Note: The use of a version of the installation program which does NOT install the {B8139C20-CF94-11D5-AEF7-0002B30625C5} key solves the problem, as the problem was being caused by the presence of a key in the GUID format, when ALL the other devices in HKLM\Enum *don't* use that format.


10. Shut down; then plug-in the PCI Card.

NB: Make a BACKUP of the registry *before* restarting the computer:

        SCANREG /BACKUP


11. Boot up: this will cause Windows to automatically detect and install the USB 2.0 device (controller) on the PCI Card.

NB: Windows will restart *during* this step, installing some of the device drivers after the restart.

NB: This is an NEC chipset, so an NEC enhanced host controller is installed by the Windows plug-n-play wizard.


12. Update the driver file:

Go to Device Manager, and manually update the driver file for the USB 2.0 PCI Card, i.e. for the "NEC PCI to USB Enhanced Host Controller". Go to:

        Properties > Update Driver > Specify the location of the driver

and point the update wizard to this directory:

        C:\Windows\Drivers\ousb2\

NB: This was necessary after installing some versions; until this was done the Device Manager showed the USB 2.0 settings *seperately* from the USB 1.1 settings.

(This seems to have been a result of a faulty installation of the broadband modem, which overwrote an essential .INF file [oem3.inf] belonging to the USB 2.0 PCI Card.)

NB: This step is ONLY necessary if installing version 2.1.9.0, not when installing version 2.0.2.0.


13. Shut down; then plug the USB peripheral devices into the USB ports; then restart: Windows will detect and install the peripheral devices.


14. Make a registry backup, containing the new registry settings.

        Shut down > Restart > Run "C:\Windows\ScanregW.exe"

NB: The PC must be shut down and restarted to ensure that all the new settings are saved to the Registry.


Ed




On Sunday, December 16, 2007 at 9:13 am, Ed wrote:
>This was not a complete solution to the problem, which continues to occur: the symptom
>is that the PCI Card drivers have to be reinstalled on some (though not all) bootups.
>
>I have, however, now tracked down part of the cause of this problem. The PCI Card
>requires reinstalling on some (but not all) reboots because the two device driver
>files which it needs (ousb2hub.sys and ousbehci.sys) have been deleted from
>the folder "C:\Windows\System32\Drivers".
>
>It seems to be the case that something is activating an uninstall routine,
>which is consequently deleting those two drivers during the Windows close down, or
>during the restart. But not on every occasion.
>
>Can anyone suggest why this might occur?
>
>I am using a PCI Card with five USB 2.0 ports on it, that has an NEC chipset. The
>software driver files for the device are from OrangeWare Corporation. I have tried
>several different versions of the OrangeWare software, versions both with and without
>the GUID format in the .INF file, but the problem is experienced with all of them.
>
>It might be significant that the .INF file (OUSB2.INF) copies itself to C:\Windows\INF
>as oem3.inf and that at one point my broadband modem's installation over-wrote that
>file; and now the OrangeWare .INF copies itself to C:\Windows\INF as oem4.inf
>
>Some versions of the OrangeWare software copy OUSB2.INF to C:\Windows\INF\Other as
>OWCousb2.inf instead.
>
>Those are the only .INF files which the installation routine installs. What might
>cause Windows ME to run an uninstall routine contained in either of those files during
>a reboot?
>
>Ed
>
>
>
>


Written in response to:
Windows uninstalls device driver on shutdown (Ed: Sunday, December 16, 2007 at 9:13 am)

Responses to this message:
*re: Windows uninstalls device driver on shutdown (Ed: Saturday, December 22, 2007 at 12:40 pm)

All messages in this thread [show all]
-Windows reinstalls USB controllers on boot (Ed: Fri, Apr 6, 2007, 12:51 pm)
*re: Windows reinstalls USB controllers on boot (C K: Thu, Apr 12, 2007, 4:06 pm)
-re: Windows reinstalls USB controllers on boot (Ed: Wed, Nov 28, 2007, 10:35 am)
-Windows uninstalls device driver on shutdown (Ed: Sun, Dec 16, 2007, 9:13 am)
-re: Windows uninstalls device driver on shutdown (Ed: Thu, Dec 20, 2007, 7:46 pm)
*re: Windows uninstalls device driver on shutdown (Ed: Sat, Dec 22, 2007, 12:40 pm)
Return to the Windows Me Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.