3.5. Uninstalling WinDriver

This section will help you to uninstall either the evaluation or registered version of WinDriver.

3.5.1. Windows WinDriver Uninstall Instructions

[Note]
  • You can select to use the graphical wdreg_gui.exe utility instead of wdreg.exe.
  • wdreg.exe and wdreg_gui.exe are found in the WinDriver\util directory (see Chapter 13 for details regarding these utilities).
  1. Close any open WinDriver applications, including DriverWizard, the Debug Monitor, and user-specific applications.
  2. If you created a Kernel PlugIn driver [11], uninstall and erase it:
    1. If your Kernel PlugIn driver is currently installed, uninstall it using the wdreg utility:
      wdreg -name <Kernel PlugIn name> uninstall
      [Note]
      The Kernel PlugIn driver name should be specified without the *.sys extension.
    2. Erase your Kernel PlugIn driver from the %windir%\system32\drivers directory.
  3. Uninstall all Plug-and-Play devices (USB/PCI) that have been registered with WinDriver via an INF file:
    • Uninstall the device using the wdreg utility:
      wdreg -inf <path to the INF file> uninstall
    • Verify that no INF files that register your device(s) with WinDriver's kernel module (windrvr1260.sys) are found in the %windir%\inf directory.
  4. Uninstall WinDriver:
    • On the development PC, on which you installed the WinDriver toolkit:
      Run Start | WinDriver | Uninstall , OR run the uninstall.exe utility from the WinDriver installation directory.

      The uninstall will stop and unload the WinDriver kernel module (windrvr1260.sys); delete the copy of the windrvr1260.inf file from the %windir%\inf directory; delete WinDriver from Windows' Start menu; delete the WinDriver installation directory (except for files that you added to this directory); and delete the shortcut icons to the DriverWizard and Debug Monitor utilities from the Desktop.

    • On a target PC, on which you installed the WinDriver kernel module (windrvr1260.sys), but not the entire WinDriver toolkit:
      Use the wdreg utility to stop and unload the driver:
      wdreg -inf <path to windrvr1260.inf> uninstall

      [Note]
      When running this command, windrvr1260.sys should reside in the same directory as windrvr1260.inf.

      (On the development PC, the relevant wdreg uninstall command is executed for you by the uninstall utility).

    [Note]
    • If you attempt to uninstall WinDriver while there are open handles to the WinDriver service (windrvr1260.sys or your renamed driver [15.2], or there are connected and enabled Plug-and-Play devices that are registered to work with this service, wdreg will fail to uninstall the driver. This ensures that you do not uninstall the driver while it is being used.
    • You can check if the WinDriver kernel module is loaded by running the Debug Monitor utility (WinDriver\util\wddebug_gui.exe) [6.2]. When the driver is loaded, the Debug Monitor log displays driver and OS information; otherwise, it displays a relevant error message. On the development PC, the uninstall command will delete the Debug Monitor executables; to use this utility after the uninstallation, create a copy of wddebug_gui.exe before performing the uninstall procedure.
  5. If windrvr1260.sys was successfully unloaded, erase the following files (if they exist):
    • %windir%\system32\drivers\windrvr1260.sys
    • %windir%\inf\windrvr1260.inf
    • %windir%\system32\wdapi1260.dll
    • %windir%\sysWOW64\wdapi1260.dll (Windows x64)
  6. Reboot the computer.

3.5.2. Linux WinDriver Uninstall Instructions

[Note]
The following commands must be executed with root privileges.
  1. Verify that the WinDriver driver module is not being used by another program:
    • View the list of modules and the programs using each of them:
      # /sbin/lsmod
    • Identify any applications and modules that are using the WinDriver driver module. (By default, WinDriver module names begin with windrvr1260).
    • Close any applications that are using the WinDriver driver module.
    • If you created a Kernel PlugIn driver [11], unload the Kernel PlugIn driver module:
      # /sbin/rmmod kp_xxx_module
  2. Run the following command to unload the WinDriver driver module:
    # /sbin/modprobe -r windrvr1260
  3. If you created a Kernel PlugIn driver, remove it as well.
  4. Remove the file .windriver.rc from the /etc directory:
    # rm -f /etc/.windriver.rc
  5. Remove the file .windriver.rc from $HOME:
    # rm -f $HOME/.windriver.rc
  6. If you created a symbolic link to DriverWizard, remove the link using the command
    # rm -f /usr/bin/wdwizard
  7. Remove the WinDriver installation directory using the command
    # rm -rf <path to the WinDriver directory>
    (for example: # rm -rf ~/WinDriver).
  8. Remove the WinDriver shared object file, if it exists:
    /usr/lib/libwdapi1260.so (32-bit x86) /
    /usr/lib64/libwdapi1260.so (64-bit x86).