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

  1. ; NVIDIA Display Driver uninstaller
  2. call Uninstall
  3.  
  4. [UninstallSilent]
  5. Set ForceNoReboot=yes
  6. call UninstallSilentReboot
  7.  
  8. [UninstallSilentReboot]
  9. Set Silent=yes
  10. call Uninstall
  11. Delreg {UninstRegkey}\NVIDIA Display Driver
  12. del {current Script}
  13. del {Current Parser Path}
  14.  
  15. [Uninstall]
  16. getreg UninstStr=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NVIDIAStereo\UninstallString
  17. if {UninstStr}%.exe then syscallandwait {UninstStr} 
  18. ; Unregister any DLLs
  19. SysCallAndWait {sysdir}\regsvr32.exe /s /u {sysdir}\nvcpl.dll
  20. SysCallAndWait {sysdir}\regsvr32.exe /s /u {sysdir}\nview.dll
  21. SysCallAndWait {sysdir}\regsvr32.exe /s /u {sysdir}\nvshell.dll
  22. SysCallAndWait {sysdir}\regsvr32.exe /s /u {sysdir}\nvwdmcpl.dll
  23.  
  24. UninstallService NVSvc
  25.  
  26. set nViewDialogRegkeyPath=Software\NVIDIA Corporation\Global\nViewInstalled
  27. if {Silent}=yes then delreg HKLM\{nViewDialogRegkeyPath}
  28. if {Silent}=yes then delreg HKCU\{nViewDialogRegkeyPath}
  29.  
  30. SysCallAndWait {sysdir}\nwiz.exe /uninstall
  31. ; remove nView dir if empty
  32. Del {windir}\nView 
  33.  
  34. call Clean up registry
  35.  
  36. ; Get rid of the non-workstation NV specific stuff in the local area
  37. set Current Root Key=HKCU
  38. set Current Reg Key=\Software\NVIDIA Corporation
  39. call DelNoneWorkStationKeys
  40. set Current Root Key=HKLM
  41. call DelNoneWorkStationKeys
  42. EnumRegCmd HKU\\{*}\Software\NVIDIA Corporation,Call DelNoneWorkStationKeys
  43.  
  44. delreg HKCR\TypeLib\{1AFBF72B-58EA-41CB-B117-3CDE0857F4A6}
  45.  
  46. Call DeleteFiles
  47.  
  48. RemoveDevice pci,VEN_10DE,Display
  49.  
  50. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Run\NvDeskMgrRestart
  51. DelReg HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run\NvDeskMgrRestart
  52.  
  53. enumregcmd HKLM\SYSTEM\{*ControlSet}\Control\Video\{*},call EnumVideoKeys
  54. enumregcmd HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Reinstall\{*},call DelReinstallKeys
  55. set RegPath=HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache
  56. EnumRegNamesCmd {RegPath}, if {current Reg Value}%NVIDIA then delreg {RegPath}\{Current Reg Name}
  57.  
  58. Enumregcmd HKLM\SYSTEM\{*ControlSet}\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\{*},call DelnvDualViewRegs
  59.  
  60. [DelnvDualViewRegs]
  61. GetReg ProviderName={Current Root Key}\{Current Reg Key}\ProviderName
  62. if {ProviderName}=NVIDIA then DelReg {Current Root Key}\{Current Reg Key}
  63.  
  64. [EnumVideoKeys]
  65. set MyBaseKey={Current Root Key}\{Current Reg Key}
  66. enumregcmd {MyBaseKey}\{*},call CheckNVIDIAVideoKeys
  67.  
  68. [CheckNVIDIAVideoKeys]
  69. GetReg Device Description={Current Root Key}\{Current Reg Key}\Device Description
  70. if {Device Description}%NVIDIA then delreg {MyBaseKey}
  71.  
  72. [DelReinstallKeys]
  73. GetReg ProviderName={Current Root Key}\{Current Reg Key}\ProviderName
  74. GetReg DeviceInstanceIds={Current Root Key}\{Current Reg Key}\DeviceInstanceIds
  75. GetReg Class=HKLM\SYSTEM\CurrentControlSet\Enum\{DeviceInstanceIds}\Class
  76. if {Class},{ProviderName}%Display,NVIDIA then DelReg {Current Root Key}\{Current Reg Key}
  77.  
  78. [Clean up registry]
  79. call RemoveInfFromRegistry
  80. DelReg HKLM\Software\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\RIVATNT
  81. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Run\NvCplDaemon
  82. DelReg HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run\NvCplDaemon
  83. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Run\nwiz
  84. DelReg HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run\nwiz
  85.  
  86. DelReg HKLM\HARDWARE\\RESOURCEMAP\\VIDEO\nv4
  87. DelReg HKLM\HARDWARE\\RESOURCEMAP\\VIDEO\nv
  88.  
  89. set RootKey=HKLM\SYSTEM\{*ControlSet}
  90. call EnumAndDeleteHWKeys
  91.  
  92. ; NvTweak
  93. DelReg HKCR\CLSID\{FFB699E0-306A-11d3-8BD1-00104B6F7516}
  94. set Current Root Key=HKLM
  95. set Current Reg Key=\Software\Microsoft\Windows\CurrentVersion
  96. call DeleteNTTweak
  97. set RootKey=HKCU
  98. call DeleteNTTweak
  99.  
  100. set Current Root Key=HKLM
  101. set Current Reg Key=\Software\Wow6432Node\Microsoft\Windows\CurrentVersion
  102. call DeleteNTTweak
  103. set RootKey=HKCU
  104. call DeleteNTTweak
  105.  
  106. EnumRegCmd HKU\\{*}\Software\Microsoft\Windows\CurrentVersion,Call DeleteNTTweak
  107. EnumRegCmd HKU\\{*}\Software\Wow6432Node\Microsoft\Windows\CurrentVersion,Call DeleteNTTweak
  108.  
  109. [EnumAndDelProfileKeys]
  110. DelReg {RegPath}\{*}\System\CurrentControlSet\Services\nv4
  111. DelReg {RegPath}\{*}\System\CurrentControlSet\Services\nv
  112.  
  113. [EnumAndDeleteHWKeys]
  114. DelReg {RootKey}\Services\nv4
  115. DelReg {RootKey}\Services\EventLog\System\nv4
  116. DelReg {RootKey}\Enum\Root\LEGACY_NV4
  117. DelReg {RootKey}\Services\nv
  118. DelReg {RootKey}\Services\EventLog\System\nv
  119. DelReg {RootKey}\Enum\Root\LEGACY_NV
  120. set RegPath={RootKey}\Services
  121. DelReg {RegPath}\nvcap
  122. DelReg {RegPath}\nvtunep
  123. DelReg {RegPath}\tvsnd
  124. DelReg {RegPath}\nvxbar
  125. set RegPath={RootKey}\Enum\DISPLAY
  126. DelReg {RegPath}\nvcap
  127. DelReg {RegPath}\nvtunep
  128. DelReg {RegPath}\tvsnd
  129. DelReg {RegPath}\nvxbar
  130. DelReg {RegPath}\nvMultiView
  131. set RegPath={RootKey}\Hardware Profiles
  132. call EnumAndDelProfileKeys
  133. DelReg {RootKey}\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\{*}\CoInstallers32
  134. DelReg {RootKey}\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\{*}\Uninstall
  135. EnumRegCmd HKLM\SYSTEM\{*ControlSet}\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\{*},Call CheckWDMDriver
  136.  
  137. [CheckDriver]
  138. GetReg Class={Current Root Key}\{Current Reg Key}\class
  139. GetReg Mfg={Current Root Key}\{Current Reg Key}\Mfg
  140. if {Class},{Mfg}=Display,NVIDIA then DelReg {Current Root Key}\{Current Reg Key}
  141.  
  142. [CheckWDMDriver]
  143. GetReg ProviderName={Current Root Key}\{Current Reg Key}\ProviderName
  144. GetReg MatchingDeviceId={Current Root Key}\{Current Reg Key}\MatchingDeviceId
  145. if {ProviderName},{MatchingDeviceId}=nVidia,display\nvcap then DelReg {Current Root Key}\{Current Reg Key}
  146. if {ProviderName},{MatchingDeviceId}=nVidia,display\nvxbar then DelReg {Current Root Key}\{Current Reg Key}
  147. if {ProviderName},{MatchingDeviceId}=nVidia,display\nvtunep then DelReg {Current Root Key}\{Current Reg Key}
  148. if {ProviderName},{MatchingDeviceId}=nVidia,display\nvtvsnd then DelReg {Current Root Key}\{Current Reg Key}
  149.  
  150. [DeleteNTTweak]
  151. delreg {Current Root Key}{Current Reg Key}\Controls Folder\Display\shellex\PropertySheetHandlers\NVIDIA CPL Extension
  152. delreg {Current Root Key}{Current Reg Key}\Run\Nv4QuickTweak
  153. delreg {Current Root Key}{Current Reg Key}\Run\Nv4ColorInit
  154. delreg {Current Root Key}{Current Reg Key}\Run\NvInitialize
  155. delreg {Current Root Key}{Current Reg Key}\Run\NvMediaCenter
  156. delreg {Current Root Key}{Current Reg Key}\Run\NvDeskMgrRestart
  157. delreg {Current Root Key}{Current Reg Key}\RunOnce\NvCplDaemon
  158. delreg {Current Root Key}{Current Reg Key}\RunOnce\nwiz
  159.  
  160. [DelNoneWorkStationKeys]
  161. DelReg  {Current Root Key}{Current Reg Key}\Global\NvSvc
  162. DelReg  {Current Root Key}{Current Reg Key}\Global\NVTweak
  163. DelReg  {Current Root Key}{Current Reg Key}\Global\NVDesk
  164. DelReg  {Current Root Key}{Current Reg Key}\Global\Setup
  165. DelReg  {Current Root Key}{Current Reg Key}\Global\MediaCenterTray
  166. DelReg  {Current Root Key}{Current Reg Key}\Global
  167. DelRegE {Current Root Key}{Current Reg Key}
  168.  
  169.  
  170. [DeleteFiles]
  171. ; delete oem*.inf files that have the following information
  172. ; wildcard for filename, section1,variable1,value1 [,section2,variable2,value2[,...]]  
  173. DelOemInfs nv*,Version,Class,Display,Version,Provider,%NVIDIA%
  174. DelOemInfs nv*,Version,Class,Display,Strings,Mfg,NVIDIA
  175. DelOemInfs nv*,Version,Class,Media,Strings,MS,nVidia
  176. DelIniIfMatched {windir}\INF\INTERNET\NVIDIA*.INF,Version,Class,Display
  177.  
  178. set BasePath={sysdir}
  179. DelBoot {basepath}\nv4_disp.dll
  180. DelBoot {basepath}\nvdccapp.cfg
  181. DelBoot {basepath}\nvwsapps.cfg
  182. DelBoot {basepath}\nvtuicpl.cpl
  183. DelBoot {basepath}\nvcpl.dll
  184. DelBoot {basepath}\nvmofb.mof
  185. DelBoot {basepath}\nview.dll
  186. DelBoot {basepath}\nview64.dll
  187. DelBoot {basepath}\nviewimg.dll
  188. DelBoot {basepath}\nvwimg64.dll
  189. DelBoot {basepath}\nviewx.dll
  190. DelBoot {basepath}\nvinstnt.dll
  191. DelBoot {basepath}\nvmctray.dll
  192. DelBoot {basepath}\nvnt4cpl.dll
  193. DelBoot {basepath}\nvoglnt.dll
  194. DelBoot {basepath}\nvshell.dll
  195. DelBoot {basepath}\nvwddi.dll
  196. DelBoot {basepath}\nvwddi64.dll
  197. DelBoot {basepath}\nvwdmcpl.dll
  198. DelBoot {basepath}\dmcpl.exe
  199. DelBoot {basepath}\keystone.exe
  200. DelBoot {basepath}\nvappbar.exe
  201. DelBoot {basepath}\nvsvc.exe
  202. DelBoot {basepath}\nvsvc32.exe
  203. DelBoot {basepath}\nvsvc64.exe
  204. DelBoot {basepath}\nwiz.exe
  205. DelBoot {basepath}\aliagp.sys
  206. DelBoot {basepath}\drivers\nv4_mini.sys
  207. DelBoot {basepath}\drivers\nvcap.sys
  208. DelBoot {basepath}\drivers\nvxbar.sys
  209. DelBoot {basepath}\drivers\nvtvsnd.sys
  210. DelBoot {basepath}\drivers\nvtunep.sys
  211. DelBoot {basepath}\filter.ax
  212. DelBoot {basepath}\nvcod.dll
  213. DelBoot {basepath}\nvcodins.dll
  214. DelBoot {basepath}\nvapps.xml
  215. DelBoot {basepath}\nvhwvid.dll
  216.  
  217. DelBoot {basepath}\nvarch16.dll
  218. DelBoot {basepath}\nvarch32.dll
  219. DelBoot {basepath}\nvdd32.dll
  220. DelBoot {basepath}\nvmode.dll
  221. DelBoot {basepath}\nvopengl.dll
  222. DelBoot {basepath}\nvdisp.drv
  223. DelBoot {basepath}\agart.vxd
  224. DelBoot {basepath}\nvcore.vxd
  225. DelBoot {basepath}\nvmini.vxd
  226. DelBoot {basepath}\nvmini2.vxd
  227. DelBoot {basepath}\alipcimp.pci
  228. DelBoot {basepath}\nvinst32.dll
  229. DelBoot {basepath}\nvgfx.dll
  230.  
  231. DelBoot {sysdir}\dllcache\nv4_mini.sys
  232. DelBoot {sysdir}\dllcache\nv4_disp.dll
  233.  
  234. ;NVPMAPI files
  235. DelBoot {basepath}\nvpmapi.dll
  236. DelBoot {basepath}\nvprfctr.reg
  237. DelBoot {basepath}\nvprfctr.ini
  238. DelBoot {basepath}\nvprfsmb.h
  239.  
  240. DelBoot {syswow64dir}\nvogl32.dll
  241. DelBoot {syswow64dir}\nview.dll
  242. DelBoot {syswow64dir}\nvwdmcpl.dll
  243. DelBoot {syswow64dir}\nvappbar.exe
  244. DelBoot {syswow64dir}\nviewimg.dll
  245. DelBoot {syswow64dir}\nvnt4cpl.dll
  246. DelBoot {syswow64dir}\nvwddi.dll
  247. DelBoot {syswow64dir}\nwiz.exe
  248. DelBoot {syswow64dir}\keystone.exe
  249.  
  250. ; Resource DLLs
  251. DelBoot {basepath}\nvrsar.dll
  252. DelBoot {basepath}\nvrscs.dll
  253. DelBoot {basepath}\nvrsda.dll
  254. DelBoot {basepath}\nvrsde.dll
  255. DelBoot {basepath}\nvrsel.dll
  256. DelBoot {basepath}\nvrseng.dll
  257. DelBoot {basepath}\nvrses.dll
  258. DelBoot {basepath}\nvrsesm.dll
  259. DelBoot {basepath}\nvrsfi.dll
  260. DelBoot {basepath}\nvrsfr.dll
  261. DelBoot {basepath}\nvrshe.dll
  262. DelBoot {basepath}\nvrshu.dll
  263. DelBoot {basepath}\nvrsit.dll
  264. DelBoot {basepath}\nvrsja.dll
  265. DelBoot {basepath}\nvrsko.dll
  266. DelBoot {basepath}\nvrsnl.dll
  267. DelBoot {basepath}\nvrsno.dll
  268. DelBoot {basepath}\nvrspl.dll
  269. DelBoot {basepath}\nvrspt.dll
  270. DelBoot {basepath}\nvrsptb.dll
  271. DelBoot {basepath}\nvrsru.dll
  272. DelBoot {basepath}\nvrssk.dll
  273. DelBoot {basepath}\nvrssl.dll
  274. DelBoot {basepath}\nvrssv.dll
  275. DelBoot {basepath}\nvrstr.dll
  276. DelBoot {basepath}\nvrszhc.dll
  277. DelBoot {basepath}\nvrszht.dll
  278.  
  279. ; nView Resource DLLs
  280. DelBoot {basepath}\nvwrsar.dll
  281. DelBoot {basepath}\nvwrscs.dll
  282. DelBoot {basepath}\nvwrsda.dll
  283. DelBoot {basepath}\nvwrsde.dll
  284. DelBoot {basepath}\nvwrsel.dll
  285. DelBoot {basepath}\nvwrseng.dll
  286. DelBoot {basepath}\nvwrses.dll
  287. DelBoot {basepath}\nvwrsesm.dll
  288. DelBoot {basepath}\nvwrsfi.dll
  289. DelBoot {basepath}\nvwrsfr.dll
  290. DelBoot {basepath}\nvwrshe.dll
  291. DelBoot {basepath}\nvwrshu.dll
  292. DelBoot {basepath}\nvwrsit.dll
  293. DelBoot {basepath}\nvwrsja.dll
  294. DelBoot {basepath}\nvwrsko.dll
  295. DelBoot {basepath}\nvwrsnl.dll
  296. DelBoot {basepath}\nvwrsno.dll
  297. DelBoot {basepath}\nvwrspl.dll
  298. DelBoot {basepath}\nvwrspt.dll
  299. DelBoot {basepath}\nvwrsptb.dll
  300. DelBoot {basepath}\nvwrsru.dll
  301. DelBoot {basepath}\nvwrssk.dll
  302. DelBoot {basepath}\nvwrssl.dll
  303. DelBoot {basepath}\nvwrssv.dll
  304. DelBoot {basepath}\nvwrstr.dll
  305. DelBoot {basepath}\nvwrszhc.dll
  306. DelBoot {basepath}\nvwrszht.dll
  307.  
  308. ; Help Files
  309. set BasePath={windir}\help
  310. DelBoot {basepath}\nv3tweak.hlp
  311. DelBoot {basepath}\nvcpar.hlp
  312. DelBoot {basepath}\nvcpcs.hlp
  313. DelBoot {basepath}\nvcpda.hlp
  314. DelBoot {basepath}\nvcpde.hlp
  315. DelBoot {basepath}\nvcpel.hlp
  316. DelBoot {basepath}\nvcpeng.hlp
  317. DelBoot {basepath}\nvcpes.hlp
  318. DelBoot {basepath}\nvcpesm.hlp
  319. DelBoot {basepath}\nvcpfi.hlp
  320. DelBoot {basepath}\nvcpfr.hlp
  321. DelBoot {basepath}\nvcpfr.hlp
  322. DelBoot {basepath}\nvcphe.hlp
  323. DelBoot {basepath}\nvcphu.hlp
  324. DelBoot {basepath}\nvcpit.hlp
  325. DelBoot {basepath}\nvcpja.hlp
  326. DelBoot {basepath}\nvcpko.hlp
  327. DelBoot {basepath}\nvcpl.hlp
  328. DelBoot {basepath}\nvcpnl.hlp
  329. DelBoot {basepath}\nvcpno.hlp
  330. DelBoot {basepath}\nvcppl.hlp
  331. DelBoot {basepath}\nvcppt.hlp
  332. DelBoot {basepath}\nvcpptb.hlp
  333. DelBoot {basepath}\nvcpru.hlp
  334. DelBoot {basepath}\nvcpsk.hlp
  335. DelBoot {basepath}\nvcpsl.hlp
  336. DelBoot {basepath}\nvcpsv.hlp
  337. DelBoot {basepath}\nvcpth.hlp
  338. DelBoot {basepath}\nvcptr.hlp
  339. DelBoot {basepath}\nvcpzhc.hlp
  340. DelBoot {basepath}\nvcpzht.hlp
  341.  
  342. ; nView Help Files
  343. DelBoot {basepath}\nvwcpar.hlp
  344. DelBoot {basepath}\nvwcpcs.hlp
  345. DelBoot {basepath}\nvwcpda.hlp
  346. DelBoot {basepath}\nvwcpde.hlp
  347. DelBoot {basepath}\nvwcpel.hlp
  348. DelBoot {basepath}\nvwcpeng.hlp
  349. DelBoot {basepath}\nvwcpes.hlp
  350. DelBoot {basepath}\nvwcpesm.hlp
  351. DelBoot {basepath}\nvwcpfi.hlp
  352. DelBoot {basepath}\nvwcpfr.hlp
  353. DelBoot {basepath}\nvwcpfr.hlp
  354. DelBoot {basepath}\nvwcphe.hlp
  355. DelBoot {basepath}\nvwcphu.hlp
  356. DelBoot {basepath}\nvwcpit.hlp
  357. DelBoot {basepath}\nvwcpja.hlp
  358. DelBoot {basepath}\nvwcpko.hlp
  359. DelBoot {basepath}\nvwcplen.hlp
  360. DelBoot {basepath}\nvwcpnl.hlp
  361. DelBoot {basepath}\nvwcpno.hlp
  362. DelBoot {basepath}\nvwcppl.hlp
  363. DelBoot {basepath}\nvwcppt.hlp
  364. DelBoot {basepath}\nvwcpptb.hlp
  365. DelBoot {basepath}\nvwcpru.hlp
  366. DelBoot {basepath}\nvwcpsk.hlp
  367. DelBoot {basepath}\nvwcpsl.hlp
  368. DelBoot {basepath}\nvwcpsv.hlp
  369. DelBoot {basepath}\nvwcpth.hlp
  370. DelBoot {basepath}\nvwcptr.hlp
  371. DelBoot {basepath}\nvwcpzhc.hlp
  372. DelBoot {basepath}\nvwcpzht.hlp
  373.  
  374. ; Other files
  375. DelBoot {basepath}\nvmontrs.cfg
  376. DelBoot {basepath}\nv3api.dll
  377. DelBoot {basepath}\nv3dd32.dll
  378. DelBoot {basepath}\nv3ogl.dll
  379. DelBoot {basepath}\nv3qtwk.dll
  380. DelBoot {basepath}\nv3rm.vxd
  381. DelBoot {basepath}\nv3sys.dll
  382. DelBoot {basepath}\nv3tweak.dll
  383. DelBoot {basepath}\nv4_kdisp.dll 
  384. DelBoot {basepath}\nvdesk32.dll
  385. DelBoot {basepath}\nvdmcpl.dll
  386. DelBoot {basepath}\nvds15.dll
  387. DelBoot {basepath}\nvdspmgr.dll
  388. DelBoot {basepath}\nvogl32.dll
  389. DelBoot {basepath}\nvqtwk.dll
  390. DelBoot {basepath}\nvstercp.dll
  391. DelBoot {basepath}\nvstercp.dll
  392. DelBoot {basepath}\nvstres.dll
  393. DelBoot {basepath}\maxtreme.drv
  394. DelBoot {basepath}\nv3disp.drv
  395. DelBoot {basepath}\nvfsvm.exe
  396. DelBoot {basepath}\nvsttest.exe
  397. DelBoot {basepath}\nvstview.exe
  398. DelBoot {basepath}\quadroview.exe
  399. DelBoot {basepath}\nvdual.sys
  400. DelBoot {basepath}\nv3.vxd
  401. DelBoot {basepath}\nv3mini2.vxd
  402.  
  403. ;for older stuff we just delete them right away
  404. Del {sysdir}\nvsys\nvinst32.dll 
  405. Del {sysdir}\nvsys
  406.  
  407. [RemoveInfFromRegistry]
  408. DelReg HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SetupX\INF\OEM Name\{windir}\INF\nvaml.inf
  409.