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