home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Drivere / Nforceaudio / nvaudio.nvu < prev    next >
Text File  |  2004-10-01  |  4KB  |  107 lines

  1. ;-------------------------------------------------------------------
  2. ;   Audio Driver uninstall data file
  3. ;-------------------------------------------------------------------
  4. ; stop the nvmixer otherewise file will not get deleted
  5. GetReg ProgramFilesDir=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir
  6. syscallandwait {ProgramFilesDir}\NVIDIA Corporation\NvMixer\NvMixerTray.exe -k
  7. killapp NVMixertray.exe
  8. killapp nvatray.exe
  9. ; Uninstalling NVMixer here
  10. set NVMixerGUID={D7A6C517-11F2-419F-B5BB-27772B939698}
  11. getreg UninstallCommand={uninstregkey}\{NVMixerGUID}\UninstallString
  12. if {UninstallCommand}%setup.exe then call uninstallNVMIXER
  13.  
  14. ; Also check this regkey for Win64 systems
  15. getreg UninstallCommand=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{NVMixerGUID}\UninstallString
  16. if {UninstallCommand}%setup.exe then call uninstallNVMIXER
  17.  
  18. ; also delete directories that are left behind if they are empty
  19. del {ProgramFilesDir}\NVIDIA Corporation\NvMixer
  20. del {ProgramFilesDir}\NVIDIA Corporation
  21. del {ProgramFilesDir}\Common Files\NVIDIA Shared
  22.  
  23. ; Remove any devices with the following constraint
  24. UninstallService nvnforce
  25. call Clean up registry
  26.  
  27. ; Now try to delete files used by audio driver
  28. set InfMatchingData=Version,Class,Media,Manufacturer,%MfgName%,NVIDIA
  29. DelOemInfs nv*,{InfMatchingData}
  30. ; make sure  {current File} is undefined before calling DirAndApply
  31. set current File
  32. DirAndApply {windir}\Inf\Internet\nv*.inf,DelIniIfMatched {current File},{InfMatchingData}
  33.  
  34. set InstalledDir={sysdir}
  35. Call DeleteFiles
  36. set InstalledDir={windir}\system32
  37. Call DeleteFiles
  38.  
  39. RemoveDevice pci,VEN_10DE,MEDIA
  40. RemoveDevice pci,VEN_10DE,MEDIA
  41. RemoveDevice ACPI,*PNPB006,MEDIA
  42. RemoveDevice NVAX,*NFORCE,MEDIA
  43. RemoveDevice NVAX,NFORCE_VAD,MEDIA
  44. DelBoot {sysdir}\nvuaudio.exe
  45.  
  46. [DeleteFiles]
  47.  
  48. DelBoot {InstalledDir}\ALut.dll
  49. DelBoot {InstalledDir}\nvack.dll
  50. DelBoot {InstalledDir}\nvapu.sys
  51. DelBoot {InstalledDir}\nvarm.sys
  52. DelBoot {InstalledDir}\nvasio.dll
  53. DelBoot {InstalledDir}\nvax9x.sys
  54. DelBoot {InstalledDir}\NVAX.SYS
  55. DelBoot {InstalledDir}\drivers\NVAX.SYS
  56. DelBoot {InstalledDir}\drivers\nvax9x.sys
  57. DelBoot {InstalledDir}\drivers\nvapu.sys
  58. DelBoot {InstalledDir}\drivers\nvarm.sys
  59. DelBoot {InstalledDir}\drivers\nvmcp.sys
  60. DelBoot {SysDir}\nvcoad.dll
  61.  
  62. ; lets remove nvmcp.cat from all known locations if it is found there.
  63. DelBoot {InstalledDir}\nvmcp.cat
  64. DelBoot {InstalledDir}\CatRoot\nvmcp.CAT
  65. DelBoot {sysDir}\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\nvmcp.CAT
  66.  
  67. DelBoot {InstalledDir}\nvmcp.inf
  68. DelBoot {InstalledDir}\nvmcp.sys
  69. DelBoot {InstalledDir}\nvmcp9x.inf
  70. DelBoot {InstalledDir}\nvmpu401.sys
  71. DelBoot {InstalledDir}\nvopenal.dll
  72. DelBoot {InstalledDir}\OpenAL32.dll
  73. DelBoot {windir}\APPLOG\NVUAUDIO.LGD
  74. DelBoot {windir}\APPLOG\NVUAUDIO.LGC
  75. DelBoot {windir}\APPLOG\NVUNINST.LGD
  76. DelBoot {windir}\APPLOG\NVUNINST.LGC
  77.  
  78. DirAndApply {sysdir}\ReinstallBackups\*,call DeleteReinstallBackups
  79.  
  80. [DeleteReinstallBackups]
  81. set DriverFilesPath={current file}\driverfiles\nvmcp.*
  82. set current file
  83. DirAndApply {DriverFilesPath},del {current file}
  84.  
  85. [Clean up registry]
  86. DelReg HKCR\CLSID\{594C9953-1AB0-4459-877A-102DB82CBE39}
  87.  
  88. DelReg HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\NVIDIA nForce APU1 Utilities
  89.  
  90. DelReg HKLM\SYSTEM\{*ControlSet}\Services\nvax
  91. DelReg HKLM\SYSTEM\{*ControlSet}\Services\nvnforce
  92.  
  93. DelReg HKLM\SYSTEM\{*ControlSet}\Services\EventLog\System\nvax
  94. DelReg HKLM\SYSTEM\{*ControlSet}\Services\EventLog\System\nvnforce
  95.  
  96. DelReg HKLM\SYSTEM\{*ControlSet}\Control\MediaCategories\{8633AF14-ECFF-4320-A962-8E6C2B522B9D}
  97.  
  98. DelReg HKLM\SOFTWARE\ASIO\NVIDIA ASIO Driver
  99. DelReg HKLM\Enum\NVAX\*NFORCE
  100. DelReg HKLM\System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Midi\Ports\NVIDIA(R) DLS Synthesizer
  101.  
  102. SetReg HKLM\Software\Microsoft\Windows NT\CurrentVersion\drivers.desc\wdmaud.drv=MPU401
  103.  
  104. [uninstallNVMIXER]
  105. syscallandwait {UninstallCommand} -norebootdialog
  106. sleep 3000
  107.