home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 March / GSSH0304CD5.iso / Treiber / Gainward / win2kxp_5216.exe / Win2kXP / NVDisp.nvu < prev    next >
Text File  |  2003-10-06  |  10KB  |  317 lines

  1. ; NVIDIA Display Driver uninstaller
  2. call Uninstall
  3.  
  4. [UninstallSilent]
  5. Set ForceNoReboot=yes
  6. Set Silent=yes
  7. call Uninstall
  8.  
  9. [Uninstall]
  10. UninstallService NVSvc
  11. SysCallAndWait {sysdir}\nwiz.exe /uninstall
  12. ; remove nView dir if empty
  13. Del {windir}\nView 
  14.  
  15. call Clean up registry
  16.  
  17. ; Get rid of the non-workstation NV specific stuff in the local area
  18. set RootKey=HKCU
  19. call DelNoneWorkStationKeys
  20.  
  21. Call DeleteFiles
  22.  
  23. RemoveDevice pci,VEN_10DE,Display
  24.  
  25. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Run\NvDeskMgrRestart
  26.  
  27. ; also delete its uninstaller binary
  28. DelBoot {sysdir}\nvudisp.exe
  29.  
  30. [Clean up registry]
  31. call RemoveInfFromRegistry
  32. DelReg HKLM\Software\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\RIVATNT
  33. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Run\NvCplDaemon
  34. DelReg HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\NvCplDaemon
  35. Delreg HKLM\Software\Microsoft\Windows\CurrentVersion\Run\nwiz
  36. Delreg HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\nwiz
  37.  
  38. DelReg HKLM\HARDWARE\\RESOURCEMAP\\VIDEO\nv4
  39. DelReg HKLM\HARDWARE\\RESOURCEMAP\\VIDEO\nv
  40.  
  41. set RootKey=HKLM\SYSTEM\{*ControlSet}
  42. call EnumAndDeleteHWKeys
  43.  
  44. ; NvTweak
  45. DelReg HKCR\CLSID\{FFB699E0-306A-11d3-8BD1-00104B6F7516}
  46. set RootKey=HKLM
  47. call DeleteNTTweak
  48. set RootKey=HKCU
  49. call DeleteNTTweak
  50.  
  51. [DelNoneWorkStationKeys]
  52. set BaseKey={RootKey}\SOFTWARE\NVIDIA Corporation\Global
  53. DelReg  {BaseKey}\NvSvc
  54. DelReg  {BaseKey}\NVTweak
  55. DelReg  {BaseKey}\NVDesk
  56. DelReg  {BaseKey}\Setup
  57. DelReg  {BaseKey}\MediaCenterTray
  58. set BaseKey={RootKey}\SOFTWARE\NVIDIA Corporation
  59. DelReg  {BaseKey}\Global
  60. DelRegE {BaseKey}
  61.  
  62.  
  63. [EnumAndDelProfileKeys]
  64. DelReg {RegPath}\{*}\System\CurrentControlSet\Services\nv4
  65. DelReg {RegPath}\{*}\System\CurrentControlSet\Services\nv
  66.  
  67. [EnumAndDeleteHWKeys]
  68. DelReg {RootKey}\Services\nv4
  69. DelReg {RootKey}\Services\EventLog\System\nv4
  70. DelReg {RootKey}\Enum\Root\LEGACY_NV4
  71. DelReg {RootKey}\Services\nv
  72. DelReg {RootKey}\Services\EventLog\System\nv
  73. DelReg {RootKey}\Enum\Root\LEGACY_NV
  74. set RegPath={RootKey}\Services
  75. DelReg {RegPath}\nvcap
  76. DelReg {RegPath}\nvtunep
  77. DelReg {RegPath}\tvsnd
  78. DelReg {RegPath}\nvxbar
  79. set RegPath={RootKey}\Enum\DISPLAY
  80. DelReg {RegPath}\nvcap
  81. DelReg {RegPath}\nvtunep
  82. DelReg {RegPath}\tvsnd
  83. DelReg {RegPath}\nvxbar
  84. DelReg {RegPath}\nvMultiView
  85. set RegPath={RootKey}\Hardware Profiles
  86. call EnumAndDelProfileKeys
  87. EnumRegCmd {RootKey}\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\{*0},Call CheckProvider
  88.  
  89. [CheckProvider]
  90. GetReg Provider={Current Root Key}\{Current Reg Key}\ProviderName
  91. if {Provider}=NVIDIA then DelReg {Current Root Key}\{Current Reg Key}
  92.  
  93. [CheckDriver]
  94. GetReg Class={Current Root Key}\{Current Reg Key}\class
  95. GetReg Mfg={Current Root Key}\{Current Reg Key}\Mfg
  96. if {Class},{Mfg}=Display,NVIDIA then DelReg {Current Root Key}\{Current Reg Key}
  97.  
  98. [DeleteNTTweak]
  99. set Regkey={RootKey}\Software\Microsoft\Windows\CurrentVersion
  100. DelReg {Regkey}\Controls Folder\Display\shellex\PropertySheetHandlers\NVIDIA CPL Extension
  101. DelReg {Regkey}\Run\Nv4QuickTweak
  102. DelReg {Regkey}\Run\Nv4ColorInit
  103. DelReg {Regkey}\Run\NvInitialize
  104. DelReg {Regkey}\Run\NvMediaCenter
  105. DelReg {Regkey}\Run\NvDeskMgrRestart
  106.  
  107. [DeleteFiles]
  108. ; delete oem*.inf files that have the following information
  109. ; wildcard for filename, section1,variable1,value1 [,section2,variable2,value2[,...]]  
  110. DelOemInfs nv*,Version,Class,Display,Version,Provider,%NVIDIA%
  111. DelOemInfs nv*,Version,Class,Display,Strings,Mfg,NVIDIA
  112. DelIniIfMatched {windir}\INF\INTERNET\NVIDIA*.INF,Version,Class,Display
  113.  
  114. set BasePath={sysdir}
  115. DelBoot {basepath}\nv4_disp.dll
  116. DelBoot {basepath}\nvdccapp.cfg
  117. DelBoot {basepath}\nvwsapps.cfg
  118. DelBoot {basepath}\nvtuicpl.cpl
  119. DelBoot {basepath}\nvcpl.dll
  120. DelBoot {basepath}\nview.dll
  121. DelBoot {basepath}\nviewimg.dll
  122. DelBoot {basepath}\nviewx.dll
  123. DelBoot {basepath}\nvinstnt.dll
  124. DelBoot {basepath}\nvmctray.dll
  125. DelBoot {basepath}\nvnt4cpl.dll
  126. DelBoot {basepath}\nvoglnt.dll
  127. DelBoot {basepath}\nvshell.dll
  128. DelBoot {basepath}\nvwddi.dll
  129. DelBoot {basepath}\nvwdmcpl.dll
  130. DelBoot {basepath}\dmcpl.exe
  131. DelBoot {basepath}\keystone.exe
  132. DelBoot {basepath}\nvappbar.exe
  133. DelBoot {basepath}\nvsvc.exe
  134. DelBoot {basepath}\nvsvc32.exe
  135. DelBoot {basepath}\nwiz.exe
  136. DelBoot {basepath}\aliagp.sys
  137. DelBoot {basepath}\drivers\nv4_mini.sys
  138. DelBoot {basepath}\nvcod.dll
  139.  
  140. DelBoot {basepath}\nvarch16.dll
  141. DelBoot {basepath}\nvarch32.dll
  142. DelBoot {basepath}\nvdd32.dll
  143. DelBoot {basepath}\nvmode.dll
  144. DelBoot {basepath}\nvopengl.dll
  145. DelBoot {basepath}\nvdisp.drv
  146. DelBoot {basepath}\agart.vxd
  147. DelBoot {basepath}\nvcore.vxd
  148. DelBoot {basepath}\nvmini.vxd
  149. DelBoot {basepath}\nvmini2.vxd
  150. DelBoot {basepath}\alipcimp.pci
  151. DelBoot {basepath}\nvinst32.dll
  152.  
  153. DelBoot {sysdir}\dllcache\nv4_mini.sys
  154. DelBoot {sysdir}\dllcache\nv4_disp.dll
  155. DelBoot {windir}\SysWOW64\nvogl32.dll
  156.  
  157. ; Resource DLLs
  158. DelBoot {basepath}\nvrsar.dll
  159. DelBoot {basepath}\nvrscs.dll
  160. DelBoot {basepath}\nvrsda.dll
  161. DelBoot {basepath}\nvrsde.dll
  162. DelBoot {basepath}\nvrsel.dll
  163. DelBoot {basepath}\nvrseng.dll
  164. DelBoot {basepath}\nvrses.dll
  165. DelBoot {basepath}\nvrsesm.dll
  166. DelBoot {basepath}\nvrsfi.dll
  167. DelBoot {basepath}\nvrsfr.dll
  168. DelBoot {basepath}\nvrshe.dll
  169. DelBoot {basepath}\nvrshu.dll
  170. DelBoot {basepath}\nvrsit.dll
  171. DelBoot {basepath}\nvrsja.dll
  172. DelBoot {basepath}\nvrsko.dll
  173. DelBoot {basepath}\nvrsnl.dll
  174. DelBoot {basepath}\nvrsno.dll
  175. DelBoot {basepath}\nvrspl.dll
  176. DelBoot {basepath}\nvrspt.dll
  177. DelBoot {basepath}\nvrsptb.dll
  178. DelBoot {basepath}\nvrsru.dll
  179. DelBoot {basepath}\nvrssk.dll
  180. DelBoot {basepath}\nvrssl.dll
  181. DelBoot {basepath}\nvrssv.dll
  182. DelBoot {basepath}\nvrstr.dll
  183. DelBoot {basepath}\nvrszhc.dll
  184. DelBoot {basepath}\nvrszht.dll
  185.  
  186. ; nView Resource DLLs
  187. DelBoot {basepath}\nvwrsar.dll
  188. DelBoot {basepath}\nvwrscs.dll
  189. DelBoot {basepath}\nvwrsda.dll
  190. DelBoot {basepath}\nvwrsde.dll
  191. DelBoot {basepath}\nvwrsel.dll
  192. DelBoot {basepath}\nvwrseng.dll
  193. DelBoot {basepath}\nvwrses.dll
  194. DelBoot {basepath}\nvwrsesm.dll
  195. DelBoot {basepath}\nvwrsfi.dll
  196. DelBoot {basepath}\nvwrsfr.dll
  197. DelBoot {basepath}\nvwrshe.dll
  198. DelBoot {basepath}\nvwrshu.dll
  199. DelBoot {basepath}\nvwrsit.dll
  200. DelBoot {basepath}\nvwrsja.dll
  201. DelBoot {basepath}\nvwrsko.dll
  202. DelBoot {basepath}\nvwrsnl.dll
  203. DelBoot {basepath}\nvwrsno.dll
  204. DelBoot {basepath}\nvwrspl.dll
  205. DelBoot {basepath}\nvwrspt.dll
  206. DelBoot {basepath}\nvwrsptb.dll
  207. DelBoot {basepath}\nvwrsru.dll
  208. DelBoot {basepath}\nvwrssk.dll
  209. DelBoot {basepath}\nvwrssl.dll
  210. DelBoot {basepath}\nvwrssv.dll
  211. DelBoot {basepath}\nvwrstr.dll
  212. DelBoot {basepath}\nvwrszhc.dll
  213. DelBoot {basepath}\nvwrszht.dll
  214.  
  215. ; Help Files
  216. set BasePath={windir}\help
  217. DelBoot {basepath}\nv3tweak.hlp
  218. DelBoot {basepath}\nvcpar.hlp
  219. DelBoot {basepath}\nvcpcs.hlp
  220. DelBoot {basepath}\nvcpda.hlp
  221. DelBoot {basepath}\nvcpde.hlp
  222. DelBoot {basepath}\nvcpel.hlp
  223. DelBoot {basepath}\nvcpeng.hlp
  224. DelBoot {basepath}\nvcpes.hlp
  225. DelBoot {basepath}\nvcpesm.hlp
  226. DelBoot {basepath}\nvcpfi.hlp
  227. DelBoot {basepath}\nvcpfr.hlp
  228. DelBoot {basepath}\nvcpfr.hlp
  229. DelBoot {basepath}\nvcphe.hlp
  230. DelBoot {basepath}\nvcphu.hlp
  231. DelBoot {basepath}\nvcpit.hlp
  232. DelBoot {basepath}\nvcpja.hlp
  233. DelBoot {basepath}\nvcpko.hlp
  234. DelBoot {basepath}\nvcpl.hlp
  235. DelBoot {basepath}\nvcpnl.hlp
  236. DelBoot {basepath}\nvcpno.hlp
  237. DelBoot {basepath}\nvcppl.hlp
  238. DelBoot {basepath}\nvcppt.hlp
  239. DelBoot {basepath}\nvcpptb.hlp
  240. DelBoot {basepath}\nvcpru.hlp
  241. DelBoot {basepath}\nvcpsk.hlp
  242. DelBoot {basepath}\nvcpsl.hlp
  243. DelBoot {basepath}\nvcpsv.hlp
  244. DelBoot {basepath}\nvcpth.hlp
  245. DelBoot {basepath}\nvcptr.hlp
  246. DelBoot {basepath}\nvcpzhc.hlp
  247. DelBoot {basepath}\nvcpzht.hlp
  248.  
  249. ; nView Help Files
  250. DelBoot {basepath}\nvwcpar.hlp
  251. DelBoot {basepath}\nvwcpcs.hlp
  252. DelBoot {basepath}\nvwcpda.hlp
  253. DelBoot {basepath}\nvwcpde.hlp
  254. DelBoot {basepath}\nvwcpel.hlp
  255. DelBoot {basepath}\nvwcpeng.hlp
  256. DelBoot {basepath}\nvwcpes.hlp
  257. DelBoot {basepath}\nvwcpesm.hlp
  258. DelBoot {basepath}\nvwcpfi.hlp
  259. DelBoot {basepath}\nvwcpfr.hlp
  260. DelBoot {basepath}\nvwcpfr.hlp
  261. DelBoot {basepath}\nvwcphe.hlp
  262. DelBoot {basepath}\nvwcphu.hlp
  263. DelBoot {basepath}\nvwcpit.hlp
  264. DelBoot {basepath}\nvwcpja.hlp
  265. DelBoot {basepath}\nvwcpko.hlp
  266. DelBoot {basepath}\nvwcplen.hlp
  267. DelBoot {basepath}\nvwcpnl.hlp
  268. DelBoot {basepath}\nvwcpno.hlp
  269. DelBoot {basepath}\nvwcppl.hlp
  270. DelBoot {basepath}\nvwcppt.hlp
  271. DelBoot {basepath}\nvwcpptb.hlp
  272. DelBoot {basepath}\nvwcpru.hlp
  273. DelBoot {basepath}\nvwcpsk.hlp
  274. DelBoot {basepath}\nvwcpsl.hlp
  275. DelBoot {basepath}\nvwcpsv.hlp
  276. DelBoot {basepath}\nvwcpth.hlp
  277. DelBoot {basepath}\nvwcptr.hlp
  278. DelBoot {basepath}\nvwcpzhc.hlp
  279. DelBoot {basepath}\nvwcpzht.hlp
  280.  
  281. ; Other files
  282. DelBoot {basepath}\nvmontrs.cfg
  283. DelBoot {basepath}\nv3api.dll
  284. DelBoot {basepath}\nv3dd32.dll
  285. DelBoot {basepath}\nv3ogl.dll
  286. DelBoot {basepath}\nv3qtwk.dll
  287. DelBoot {basepath}\nv3rm.vxd
  288. DelBoot {basepath}\nv3sys.dll
  289. DelBoot {basepath}\nv3tweak.dll
  290. DelBoot {basepath}\nv4_kdisp.dll 
  291. DelBoot {basepath}\nvdesk32.dll
  292. DelBoot {basepath}\nvdmcpl.dll
  293. DelBoot {basepath}\nvds15.dll
  294. DelBoot {basepath}\nvdspmgr.dll
  295. DelBoot {basepath}\nvgfx.dll
  296. DelBoot {basepath}\nvogl32.dll
  297. DelBoot {basepath}\nvqtwk.dll
  298. DelBoot {basepath}\nvstercp.dll
  299. DelBoot {basepath}\nvstercp.dll
  300. DelBoot {basepath}\nvstres.dll
  301. DelBoot {basepath}\maxtreme.drv
  302. DelBoot {basepath}\nv3disp.drv
  303. DelBoot {basepath}\nvfsvm.exe
  304. DelBoot {basepath}\nvsttest.exe
  305. DelBoot {basepath}\nvstview.exe
  306. DelBoot {basepath}\quadroview.exe
  307. DelBoot {basepath}\nvdual.sys
  308. DelBoot {basepath}\nv3.vxd
  309. DelBoot {basepath}\nv3mini2.vxd
  310.  
  311. ;for older stuff we just delete them right away
  312. Del {sysdir}\nvsys\nvinst32.dll 
  313. Del {sysdir}\nvsys
  314.  
  315. [RemoveInfFromRegistry]
  316. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SetupX\INF\OEM Name\{windir}\INF\nvaml.inf
  317.