home *** CD-ROM | disk | FTP | other *** search
/ Compilation of drivers fo…old hardware for windows / drivers20000.iso / nvgart.nvu < prev    next >
Encoding:
Text File  |  2006-03-31  |  2.1 KB  |  62 lines

  1. ; adds installer for any of the drivers if hardware and driver are present
  2. UninstallService nv_agp
  3.  
  4. set RemoveDeviceArgs=system,{windir}\inf\machine.inf
  5. if {OS}=Win98 then set RemoveDeviceArgs=system,{windir}\inf\machine2.inf
  6. if {OS}=WinME then set RemoveDeviceArgs=system
  7. if {OS}=Win2K then set RemoveDeviceArgs=system
  8.  
  9. set OSType=2k
  10. if {OS}=WinME then set OSType=9x
  11. if {OS}=Win98 then set OSType=9x
  12.  
  13. ; Remove any NVIDIA device driver if present
  14. Call RemoveGartDevices{OSType}
  15.  
  16. ; Now try to delete files used by GART driver
  17. DelOemInfs nv*,Version,Class,System,SourceDisksFiles,nvcog.dll,222
  18. DelBoot {windir}\INF\INTERNET\NVIDIAnvgart.inf
  19.  
  20. Call Clean up registry
  21. Call DeleteFiles
  22.  
  23. [DeleteFiles]
  24. DelBoot {sysdir}\nvgart.cat
  25. DelBoot {sysdir}\nvgart.inf
  26. DelBoot {sysdir}\nvgart.sys
  27. DelBoot {sysdir}\nv_agp.sys
  28. DelBoot {sysdir}\Drivers\nv_agp.sys
  29.  
  30. ; also delete its uninstaller binary
  31. DelBoot {sysdir}\nvugart.exe
  32. DelBoot {SysDir}\nvcog.dll
  33.  
  34. DelBoot {windir}\APPLOG\NVUGART.LGD
  35. DelBoot {windir}\APPLOG\NVUGART.LGC
  36. DelBoot {windir}\APPLOG\NVUNINST.LGD
  37. DelBoot {windir}\APPLOG\NVUNINST.LGC
  38.  
  39. ; If we are here we have uninstalled nvgart, let nvuninst know user that hi/her system needs two reboots.
  40. set Two reboot required=yes
  41.  
  42. [Clean up registry]
  43.  
  44. Delreg HKLM\System\CurrentControlSet\Services\VxD\PCI\GARTMiniports
  45. DelReg HKLM\SYSTEM\{*ControlSet}\Services\nv_agp
  46. DelReg HKLM\SYSTEM\{*ControlSet}\Services\EventLog\System\nv_agp
  47.  
  48. [RemoveGartDevices9x]
  49. RemoveDevice pci,VEN_10DE&DEV_01A4,{RemoveDeviceArgs}
  50. RemoveDevice pci,VEN_10DE&DEV_01A5,{RemoveDeviceArgs}
  51. RemoveDevice pci,VEN_10DE&DEV_01A6,{RemoveDeviceArgs}
  52. RemoveDevice pci,VEN_10DE&DEV_01E0,{RemoveDeviceArgs}
  53. RemoveDevice pci,VEN_10DE&DEV_01E1,{RemoveDeviceArgs}
  54. RemoveDevice pci,VEN_10DE&DEV_00D1,{RemoveDeviceArgs}
  55. RemoveDevice pci,VEN_10DE&DEV_00E1,{RemoveDeviceArgs}
  56.  
  57. [RemoveGartDevices2K]
  58. RemoveDevice pci,VEN_10DE&DEV_01B7,{RemoveDeviceArgs}
  59. RemoveDevice pci,VEN_10DE&DEV_01E8,{RemoveDeviceArgs}
  60. RemoveDevice pci,VEN_10DE&DEV_00D2,{RemoveDeviceArgs}
  61. RemoveDevice pci,VEN_10DE&DEV_00E2,{RemoveDeviceArgs}
  62.